Difference between revisions of "Getprime"
From Mesham
Jump to navigationJump to search (Created page with '== Overview == This getprime[n] function will find the ''n''th prime number. * '''Pass:''' An integer * '''Returns:''' An integer representing the prime == Example == var a:=…') |
m (4 revisions imported) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
| − | This getprime | + | This getprime(n) function will find the ''n''th prime number. |
| − | * '''Pass:''' An | + | |
| − | * '''Returns:''' An | + | * '''Pass:''' An [[Int]] |
| + | * '''Returns:''' An [[Int]] representing the prime | ||
== Example == | == Example == | ||
| − | var a:=getprime | + | #include <maths> |
| − | + | ||
| − | + | function void main() { | |
| + | var a:=getprime(10); | ||
| + | var y:=getprime(a); | ||
| + | }; | ||
| + | |||
| + | ''Since: Version 0.41b'' | ||
[[Category:Function Library]] | [[Category:Function Library]] | ||
[[Category:Maths Functions]] | [[Category:Maths Functions]] | ||