Refactored for simplicity

No longer instanciates a Prime class object