reading a file with a list of prime numbers successfully