Prime Number Checker & Generator

Check if a number is prime, find prime factors, generate primes in a range, and find the Nth prime.