placed methods in module. euler7.rb simply answers the question posed.