Difference between revisions of "Manuals/calci/ITHPRIME"
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 | + | <div style="font-size:30px">'''ITHPRIME (Index,Max)'''</div><br/> |
− | + | *<math>Index</math> is any real number | |
+ | *<math>Max</math> is the maximum limit | ||
+ | **ITHPRIME(), returns the ith prime. | ||
− | + | == Description == | |
+ | ITHPRIME(Index,Max) | ||
− | + | For Example, | |
− | </ | + | ITHPRIME(4,25) returns ''7'' as a result. |
− | + | ||
− | <div id=" | + | *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 > 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=" " | | ||
− | + | |- class="odd" | |
+ | | class="sshl_f" | 6 | ||
+ | | class=" " |30 | ||
+ | | class=" " | | ||
+ | |- class="even" | ||
+ | | class="sshl_f" | | ||
+ | | class=" " | | ||
+ | | class=" " | | ||
+ | |} | ||
</div> | </div> | ||
− | |||
− | |||
− | + | =ITHPRIME(A1,A2): Calculates the 3rd prime number in the series, checks if it is < 6. <br />''Displays 5'' as a result. | |
+ | =ITHPRIME(B1,B2): Calculates the 6th prime number in the series, checks if it is < 30. <br />''Displays 13'' as a result. | ||
− | + | ==Related Videos== | |
− | |||
− | |||
− | + | {{#ev:youtube|mIStB5X4U8M|280|center|Prime Numbers}} | |
− | + | == See Also == | |
− | |||
− | |||
− | + | *[[Manuals/calci/ISPRIME | ISPRIME]] | |
− | + | == References == | |
− | + | *[http://en.wikipedia.org/wiki/Prime_number Prime Number] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | *[[Z_API_Functions | List of Main Z Functions]] | |
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | *[[ Z3 | Z3 home ]] | |
− |
Latest revision as of 16:27, 17 August 2018
ITHPRIME (Index,Max)
- is any real number
- 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 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 value.
- and should be real numbers, else Calci displays #NULL error message.
- should be > 2.
- If is less than the 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
See Also
References