Difference between revisions of "Getprime"

From Mesham
Jump to navigationJump to search
m
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 integer
+
* '''Pass:''' An [[Int]]
* '''Returns:''' An integer representing the prime
+
* '''Returns:''' An [[Int]] representing the prime
  
 
== Example ==
 
== Example ==
Line 11: Line 11:
 
  var a:=getprime(10);
 
  var a:=getprime(10);
 
  var y:=getprime(a);
 
  var y:=getprime(a);
 +
 +
''Since: Version 0.41b''
  
 
[[Category:Function Library]]
 
[[Category:Function Library]]
 
[[Category:Maths Functions]]
 
[[Category:Maths Functions]]

Revision as of 18:33, 13 January 2013

Overview

This getprime(n) function will find the nth prime number.

  • Pass: An Int
  • Returns: An Int representing the prime

Example

#include <maths>
var a:=getprime(10);
var y:=getprime(a);

Since: Version 0.41b