Prime program for assignment1 - untested