Kone
0.0.0-dev-1
common
kone.numberTheory
/
com.lounres.kone.numberTheory
/
isPrime
is
Prime
fun
Int
.
isPrime
(
)
:
Boolean
fun
Long
.
isPrime
(
)
:
Boolean
Trivial
primality test
by checking its divisibility by every integer between its square root and 2.