{ 2, 3, 5, 7, 11, 13, 17, 19,23}>> primefile
 will create a file called primefile where the list will be stored. This can be
read into
 any expression using the ReadList command.
primes= ReadList[ "primefile", Expression]
 Notice that this has placed an extra set of braces around the input. The
extra 
  set of braces can be removed using the Flatten command, which removes all
the
braces (except the outermost ones) from a list.
  primes= Flatten[ primes]