Finds all primes from 1 - given number.