four version programe to get prime number