PrimeQ

For very large numbers, PrimeQ uses probabilistic prime testing, so it might be wrong sometimes (a number might be composite even though PrimeQ says it is prime). The algorithm might be changed in the future.

All prime numbers between 1 and 100:

PrimeQ has attribute Listable: