Check whether a number is prime, find the next and previous primes, and list all primes up to a limit.
Category: Education.