Fix issue in is_prime()
Add solutions for problems 4-7