Generate prime number and write it in Array
generate prime numbers and write in array. fix