problem 273
add generate_primes()
correcting errors in generate_primes()
add generate_squares()