Difference between revisions of "Manuals/calci/ISPRIME"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''ISPRIME'''(SomeNumber) where '''SomeNumber '''is any real number. </div> ---- <div id="1SpaceContent"...")
 
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
=ISPRIME (Number)=
 +
*<math>Number</math> is any real number.
 +
**ISPRIME(), returns the TRUE if the value is prime number.
  
'''ISPRIME'''(SomeNumber)
 
  
where
+
==Description==
 +
*Opposite of [[Manuals/calci/ISCOMPOSITE| 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.
  
'''SomeNumber '''is any real number.
+
==ZOS==
 +
*The syntax is to find whether the given number is prime in ZOS is <math>ISPRIME (Number)</math>.
 +
**<math>Number</math> is any number.
 +
*For e.g.,ISPRIME(5.1)= false.
  
</div>
+
==Examples==
----
+
#=ISPRIME(2)=TRUE
<div id="1SpaceContent" class="zcontent" align="left">
+
#=ISPRIME(7)=TRUE
 +
#=ISPRIME(105)=FALSE
 +
#=ISPRIME(1)=TRUE
 +
#=ISPRIME(-2)=FALSE
 +
#=ISPRIME(0)=FALSE
 +
#= ISPRIME(5.1) = FALSE
  
ISPRIME function determines whether the given number is a prime number or not.
+
==Related Videos==
  
ISPRIME function returns 1 if the given number is prime and returns 0 if the given number is not prime.<br />
+
{{#ev:youtube|mIStB5X4U8M|280|center|PRIME NUMBERS}}
  
</div>
+
==See Also==
----
+
*[[Manuals/calci/ISNUMBER  | ISNUMBER ]]
<div id="7SpaceContent" class="zcontent" align="left">
+
*[[Manuals/calci/ISODD  | ISODD ]]
 +
*[[Manuals/calci/ISEVEN  | ISEVEN ]]
  
ISPRIME returns NaN if SomeNumber is not real
+
==References==
 +
[http://en.wikipedia.org/wiki/Is_functions Is functions]
  
</div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
ISPRIME
 
  
</div></div>
+
*[[Z_API_Functions | List of Main Z Functions]]
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
  
Lets see an example in (Column2Row1)
+
*[[ Z3 Z3 home ]]
 
 
<nowiki>=ISPRIME(Column1Row1)</nowiki>
 
 
 
Returns 1 for ISPRIME(3)
 
 
 
Consider another example in (Column2Row2)
 
 
 
<nowiki>=ISPRIME(Column1Row2)</nowiki>
 
 
 
Returns 0 for ISPRIME(4)
 
 
 
</div>
 
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Syntax </div><div class="ZEditBox"><center></center></div></div>
 
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Remarks </div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Examples </div></div>
 
----
 
<div id="11SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">Description </div></div>
 
----
 
<div id="2SpaceContent" class="zcontent" align="left">
 
 
 
{| id="TABLE3" class="SpreadSheet blue"
 
|+ Default Calci
 
|- class="even"
 
| class=" " |
 
| Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f" | 3
 
| class="sshl_f" | 1
 
| class="          sshl_f  sshl_f" |
 
| class="                                                          sshl_f  sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="  1 " | 4
 
| class="sshl_f" | 0
 
| class=" sshl_f" |
 
| class="sshl_f  sshl_f" |
 
|- class="odd"
 
| Row3
 
| class="sshl_f  " |
 
| class="                      sshl_f  sshl_f                    SelectTD1 ChangeBGColor SelectTD1" |
 
<div id="2Space_Handle" class="zhandles" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="2Space_Copy" class="zhandles" title="Click and Drag over to AutoFill other cells."></div><div id="2Space_Drag" class="zhandles" title="Click and Drag to Move/Copy Area.">[[Image:copy-cube.gif]]  </div>
 
| class="sshl_f   " |
 
| class="sshl_f" |
 
|- class="even"
 
| Row4
 
| class="      " |
 
| class=" sshl_f" |
 
| class="sshl_f" |
 
|
 
|- class="odd"
 
| class=" " | Row5
 
|
 
| class=" sshl_f" |
 
| class="sshl_f" |
 
|
 
|- class="even"
 
| Row6
 
|
 
|
 
| class="sshl_f" |
 
|
 
|}
 
 
 
{|
 
| <span align="left">[[Image:calci1.gif]]</span>
 
|
 
|
 
[[Image:bold.gif]]
 
|
 
[[Image:italic.gif]]
 
|
 
[[Image:normal.gif]]
 
|
 
[[Image:underline.gif]]
 
|
 
[[Image:border.gif]]
 
|
 
[[Image:numbers.gif]]
 
|
 
[[Image:sort.gif]]
 
|
 
[[Image:formatcells.gif]]
 
|
 
[[Image:graphs.gif]]
 
| $
 
|}
 
 
 
</div>
 
----
 

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

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

Related Videos

PRIME NUMBERS

See Also

References

Is functions