Check whether an integer is prime and list primes within the supported range. Useful for number-theory practice and code checks.