The PRIMES function computes the first K prime numbers. The result is a K -element long integer vector.
This routine is written in the IDL language. Its source code can be found in the file
primes.pro
in the
lib
subdirectory of the IDL distribution.