Generating random prime number