added Prime function to Read and save prime numbers to a file