Difference between revisions of "Getprime"
From Mesham
Jump to navigationJump to searchm (4 revisions imported) |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
This getprime(n) function will find the ''n''th prime number. | This getprime(n) function will find the ''n''th prime number. | ||
| − | * '''Pass:''' An | + | * '''Pass:''' An [[Int]] |
| − | * '''Returns:''' An | + | * '''Returns:''' An [[Int]] representing the prime |
== Example == | == Example == | ||
#include <maths> | #include <maths> | ||
| − | var a:=getprime(10); | + | |
| − | + | 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]] | ||