isprime#
- isprime(n, verbose=False)[source]#
Determine if a number is prime.
From https://stackoverflow.com/questions/15285534/isprime-function-for-python-language
Example:
for i in range(100): print(i) if sc.isprime(i) else None
Determine if a number is prime.
From https://stackoverflow.com/questions/15285534/isprime-function-for-python-language
Example:
for i in range(100): print(i) if sc.isprime(i) else None