Skip to content

Version 0.1.0

Latest

Choose a tag to compare

@Mnjongen Mnjongen released this 19 Feb 15:24
· 1 commit to main since this release

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