Difference between revisions of "Manuals/calci/ITHPRIME"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | =ITHPRIME( | + | <div style="font-size:30px">'''ITHPRIME (Index,Max)'''</div><br/> |
| − | + | *<math>Index</math> is any real number | |
| − | *<math> | + | *<math>Max</math> is the maximum limit |
| − | *<math> | ||
| − | ITHPRIME() | + | ITHPRIME(), returns the ith prime. |
== Description == | == Description == | ||
| − | ITHPRIME( | + | ITHPRIME(Index,Max) |
For Example, | For Example, | ||
| Line 14: | Line 13: | ||
ITHPRIME(4,25) returns ''7'' as a result. | ITHPRIME(4,25) returns ''7'' as a result. | ||
| − | *ITHPRIME() 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> | + | *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> | + | *<math>Index</math> and <math>Max</math> should be real numbers, else Calci displays #NULL error message. |
| − | *<math> | + | *<math>Max</math> should be > 2. |
| − | *If <math> | + | *If <math>Max</math> is less than the <math>Index</math> prime number value, Calci displays #NULL error message. |
== Examples == | == Examples == | ||
Revision as of 15:59, 25 June 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
See Also
References