script to solve for prime numbers, up to a given number