Skip to main content
MedCalc
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
working
Show menu Show menu

ISPRIME function

Description

ISPRIME(x) checks whether a number is a prime number. The argument x must be less than 1000000000000 (1012). The function returns 1 when the number is prime, 0 when not.

The argument x can be a real number or a matrix. When it is a matrix, the function returns a matrix with the same dimensions and with the ISPRIME function applied to all elements.

Examples

ISPRIME(11) returns 1

Calculator

ISPRIME(  

Related functions

External links