New problem 3 without prime function

looked at solution though