add code that finds all prime numbers up to a user-given number