Difference between revisions of "Manuals/calci/ISPRIME"
Jump to navigation
Jump to search
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | + | =ISPRIME (Number)= | |
− | *<math> | + | *<math>Number</math> is any real number. |
+ | **ISPRIME(), returns the TRUE if the value is prime number. | ||
+ | |||
==Description== | ==Description== | ||
+ | *Opposite of [[Manuals/calci/ISCOMPOSITE| ISCOMPOSITE]] | ||
*This function is one of the group in ISFUNCTIONS. | *This function is one of the group in ISFUNCTIONS. | ||
*The IS FUNCTION is also known as data information functions, data inspection functions or data-testing functions. | *The IS FUNCTION is also known as data information functions, data inspection functions or data-testing functions. | ||
Line 13: | Line 16: | ||
==ZOS== | ==ZOS== | ||
− | *The syntax is to find whether the given number is prime in ZOS is <math>ISPRIME( | + | *The syntax is to find whether the given number is prime in ZOS is <math>ISPRIME (Number)</math>. |
− | **<math> | + | **<math>Number</math> is any number. |
− | *For e.g.,ISPRIME(5.1)= | + | *For e.g.,ISPRIME(5.1)= false. |
==Examples== | ==Examples== | ||
Line 25: | Line 28: | ||
#=ISPRIME(0)=FALSE | #=ISPRIME(0)=FALSE | ||
#= ISPRIME(5.1) = FALSE | #= ISPRIME(5.1) = FALSE | ||
+ | |||
+ | ==Related Videos== | ||
+ | |||
+ | {{#ev:youtube|mIStB5X4U8M|280|center|PRIME NUMBERS}} | ||
==See Also== | ==See Also== | ||
Line 33: | Line 40: | ||
==References== | ==References== | ||
[http://en.wikipedia.org/wiki/Is_functions Is functions] | [http://en.wikipedia.org/wiki/Is_functions Is functions] | ||
+ | |||
+ | |||
+ | |||
+ | *[[Z_API_Functions | List of Main Z Functions]] | ||
+ | |||
+ | *[[ Z3 | Z3 home ]] |
Latest revision as of 09:52, 11 February 2020
ISPRIME (Number)
- is any real number.
- ISPRIME(), returns the TRUE if the value is prime number.
Description
- Opposite of ISCOMPOSITE
- This function is one of the group in ISFUNCTIONS.
- The IS FUNCTION is also known as data information functions, data inspection functions or data-testing functions.
- ISPRIME function is used to test the given number is prime or not.
- This function gives the result as TRUE when the given value is prime otherwise this function gives th result as FALSE.
- A prime number is a natural number, it can be divided, without a remainder, only by itself and by 1.
- For e.g. The number 11 is a prime, because 11 is divided by 1 and 11 without any remainder.
- But 6 is not prime, because 6 can be divided by 1,2,3 and 6.
- Also the number 0 and 1 are neither prime nor composite.
ZOS
- The syntax is to find whether the given number is prime in ZOS is .
- is any number.
- For e.g.,ISPRIME(5.1)= false.
Examples
- =ISPRIME(2)=TRUE
- =ISPRIME(7)=TRUE
- =ISPRIME(105)=FALSE
- =ISPRIME(1)=TRUE
- =ISPRIME(-2)=FALSE
- =ISPRIME(0)=FALSE
- = ISPRIME(5.1) = FALSE
Related Videos
See Also
References