modularized prime number stuff and solved #7