hw1 q2 Prime check working, next write output