Refactoring for clarity

Used instance of Prime class instead of new
Improved variable name