Factor Prime module out of project_euler_12.rb into primes.rb.