PRIMES
Syntax | Return Value | Arguments | Examples | Version History
The PRIMES function computes the first K prime numbers.
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.
Syntax
Result = PRIMES(K)
Return Value
The result is a K-element long integer vector.
Arguments
K
An integer or long integer scalar that specifies the number of primes to be computed.
Examples
To compute the first 25 prime numbers:
IDL prints:
Version History