Prime Number Generation Code