R/projectEuler.R
isPrime.Rd
isPrimes checks whether or not a number is prime
isPrimes
isPrime(value)
A integer.
Boolean.
This function has the following complexity O((n))
isPrime(2)#> [1] TRUEisPrime(4)#> [1] FALSEisPrime(13)#> [1] TRUE