added prime number checker