Difference between revisions of "Manuals/calci/ITHPRIME"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="6SpaceContent" class="zcontent" align="left"> '''ITHPRIME'''(i,n) where '''i '''and''' n '''are any real numbers and n>2 </div> ---- <div id="1Spa...")
 
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id="6SpaceContent" class="zcontent" align="left">
+
<div style="font-size:30px">'''ITHPRIME (Index,Max)'''</div><br/>
  
'''ITHPRIME'''(i,n)
+
*<math>Index</math> is any real number
 +
*<math>Max</math> is the maximum limit
 +
**ITHPRIME(), returns the ith prime.
  
where
+
== Description ==
 +
ITHPRIME(Index,Max)
  
'''i '''and''' n '''are any real numbers and n&gt;2
+
For Example,
  
</div>
+
ITHPRIME(4,25) returns ''7'' as a result.
----
+
 
<div id="1SpaceContent" class="zcontent" align="left">
+
*ITHPRIME(Index,Max) calculates the <math>i</math>th prime number from the Prime Number Series (2,3,5,7,11,13,17..........) and displays as an output, if it is less than <math>Max</math> value.
 +
*<math>Index</math> and <math>Max</math> should be real numbers, else Calci displays #NULL error message.
 +
*<math>Max</math> should be &gt; 2.
 +
*If <math>Max</math> is less than the <math>Index</math> prime number value, Calci displays #NULL error message.
 +
 
 +
== Examples ==
 +
 
 +
Consider the following example in Calci, that shows the use of ITHPRIME function:
 +
 
 +
<div id="2SpaceContent" class="zcontent" align="left">
 +
 
 +
{| id="TABLE3" class="SpreadSheet blue"
 +
|- class="even"
 +
| class="sshl_f" | 3
 +
| class=" " |6
 +
| class=" " |
  
ITHPRIME function returns ith prime number less than a maximum value,n.
+
|- class="odd"
 +
| class="sshl_f" | 6
 +
| class=" " |30
 +
| class=" " |
  
 +
|- class="even"
 +
| class="sshl_f" |
 +
| class=" " |
 +
| class=" " |
 +
|}
 
</div>
 
</div>
----
 
<div id="7SpaceContent" class="zcontent" align="left">
 
  
ITHPRIME returns NaN if i or n is not real
+
=ITHPRIME(A1,A2): Calculates the 3rd prime number in the series, checks if it is &lt; 6. <br />''Displays 5'' as a result.
 +
=ITHPRIME(B1,B2): Calculates the 6th prime number in the series, checks if it is &lt; 30. <br />''Displays 13'' as a result.
  
</div>
+
==Related Videos==
----
 
<div id="12SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="left">
 
  
ITHPRIME
+
{{#ev:youtube|mIStB5X4U8M|280|center|Prime Numbers}}
  
</div></div>
+
== See Also ==
----
 
<div id="8SpaceContent" class="zcontent" align="left">
 
  
Lets see an example in (Column3Row1)
+
*[[Manuals/calci/ISPRIME | ISPRIME]]
  
<nowiki>=ITHPRIME(Column1Row1,Column2Row1)</nowiki>
+
== References ==
  
Returns 5 for ITHPRIME(3,6)
+
*[http://en.wikipedia.org/wiki/Prime_number Prime Number]
  
</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=" " | 3
 
| class="  1 " | 6
 
| class="sshl_f" | 5
 
| class="                                                          sshl_f  sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="1              " |
 
| class="sshl_f    " |
 
| class=" 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  sshl_f" |
 
|- class="odd"
 
| Row3
 
| class="sshl_f  " |
 
| class="                      sshl_f  sshl_f                      " |
 
| 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" |
 
|
 
|}
 
  
{|
+
*[[Z_API_Functions | List of Main Z Functions]]
| <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>
+
*[[ Z3 |  Z3 home ]]
----
 

Latest revision as of 17:27, 17 August 2018

ITHPRIME (Index,Max)


  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Index} is any real number
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Max} is the maximum limit
    • ITHPRIME(), returns the ith prime.

Description

ITHPRIME(Index,Max)

For Example,

ITHPRIME(4,25) returns 7 as a result.

  • ITHPRIME(Index,Max) calculates the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle i} th prime number from the Prime Number Series (2,3,5,7,11,13,17..........) and displays as an output, if it is less than Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Max} value.
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Index} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Max} should be real numbers, else Calci displays #NULL error message.
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Max} should be > 2.
  • If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Max} is less than the Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Index} prime number value, Calci displays #NULL error message.

Examples

Consider the following example in Calci, that shows the use of ITHPRIME function:

3 6
6 30
=ITHPRIME(A1,A2): Calculates the 3rd prime number in the series, checks if it is < 6. 
Displays 5 as a result. =ITHPRIME(B1,B2): Calculates the 6th prime number in the series, checks if it is < 30.
Displays 13 as a result.

Related Videos

Prime Numbers

See Also

References