Repository navigation
This release includes a simple implementation.
SimplePrimeAlgorithm
Prime.Algorithms.Simple.SimplePrimeAlgorithm
Implementation
IPrimeAlgorithm primeAlgorithm = new SimplePrimeAlgorithm();
// get a List<int> of the first 25 prime numbers
var primes = new List<int>();
for (int i = 0; i < 25; i++)
{
primes.Add(primeAlgorithm.GetNextPrime());
}Full Changelog: https://github.com/Mnjongen/Prime/commits/0.1.0