Skip to content
Snippets Groups Projects
Commit 606b80fd authored by Régis Blanc's avatar Régis Blanc
Browse files

example from comfusy, still with pattern matching

parent 896f7690
Branches
Tags
No related merge requests found
import leon.Utils._
object PrimeHeuristic {
def maybePrime(n: Int): Boolean = n match {
case 2 * k => false
case 3 * k => false
case 6 * k - 1 => true
case 6 * k + 1 => true
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment