*! Version 1.0.1 17 April 2014
help isprime

Title

isprime -- Determine whether a number is prime or not

Syntax

isprime number [, print]

Description

isprime determines whether the specified number is a prime
number or not. It returns 1 if it is, and 0 if it is not.

Options

print specifies that the results are to be printed.

Examples

. isprime 500

. return list

. isprime 229, p

. return list

Stored results

isprime stores the following in r():

Scalars

r(prime) 1 if number is prime 0 if it is not

r(rnum) The number queried.

Author

Alfonso Sánchez-Peñalver

Lock Haven University of Pennsylvania

Lock Haven, PA USA

asp155@lhup.edu