removed duplicate of prime generator and made it better for searching through after