Fixes Array.prime? and refactors p3.rb to use ProjectEuler