added prime number functionality