List all primes up to an inputted number