It has been optimised for finding thousands of prime numbers in seconds. In a console test it managed to find 300000 prime numbers in under an hour on my laptop! Useful for strong encryption keys and studying the mathematics of prime numbers.
It has 6 prime finding functions (not including the initiation function).
You can preload thousands of prime numbers into an array so if you want to retrieve a prime number later, it will be returned instantaniously.
The zip folder contains an example, the dll file, and the gml script file.
- Example of saving primes to a file added.
- Prime checking technique is now much faster thanks to Maarten Baert
Feedback would be appreciated
Edited by tomster1996, 31 May 2010 - 03:25 PM.