Check Prime numbers

This commit is contained in:
2021-09-23 15:49:02 -04:00
parent f3702780af
commit 17044eb132
4 changed files with 88 additions and 6 deletions
@@ -1,7 +1,9 @@
package com.ossez.prime;
import org.apache.commons.math3.primes.Primes;
import org.junit.Test;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.List;
@@ -25,5 +27,6 @@ public class PrimeGeneratorUnitTest {
public void whenSieveOfEratosthenes_returnsSuccessfully() {
final List<Integer> primeNumbers = sieveOfEratosthenes(20);
assertEquals(Arrays.asList(new Integer[] { 2, 3, 5, 7, 11, 13, 17, 19 }), primeNumbers);
BigInteger bigInt = BigInteger.valueOf(100);
}
}