Difference between revisions of "Manuals/calci/ISPRIME"

From ZCubes Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<div style="font-size:30px">'''ISPRIME(n)'''</div><br/>
+
<div style="font-size:30px">'''ISPRIME(int)'''</div><br/>
*<math>n</math> is the number
+
*<math>int</math> is any number
  
 
==Description==
 
==Description==
Line 11: Line 11:
 
*But 6 is not prime, because 6 can be divided by 1,2,3 and 6.  
 
*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.
 
*Also the number 0 and 1 are neither prime nor composite.
 +
 +
==ZOS Section==
 +
*The syntax is to find whether the given number is prime in ZOS is <math>ISPRIME(int)</math>.
 +
**<math>int</math> is any number.
 +
*For e.g.,ISPRIME(5.1)= true.
  
 
==Examples==
 
==Examples==

Revision as of 23:50, 3 July 2014

ISPRIME(int)


  • is any number

Description

  • 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 Section

  • The syntax is to find whether the given number is prime in ZOS is .
    • is any number.
  • For e.g.,ISPRIME(5.1)= true.

Examples

  1. =ISPRIME(2)=TRUE
  2. =ISPRIME(7)=TRUE
  3. =ISPRIME(105)=FALSE
  4. =ISPRIME(1)=TRUE
  5. =ISPRIME(-2)=FALSE
  6. =ISPRIME(0)=FALSE

See Also

References

Is functions