Writing some prime helpers
Solving problem 3
Fixing minor issue
Solving problem 4