Created
October 24, 2014 21:23
-
-
Save KamilLelonek/e453ed3b2aea5ef1da9e to your computer and use it in GitHub Desktop.
Scala prime numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def isPrime(number: Int) = (2 until number) forall (divider => number % divider != 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment