a code to generate prime number