basic prime number utility