public void Solution() { /* * Find the sum of all positive integers n not exceeding 100 000 000 * such that for every divisor d of n, d+n/d is prime. */ var sut = new E357PrimeGeneratingIntegers(Max: 100000000); Assert.Equal(-1, sut.GetSumOfAllPositiveIntegers()); /* * * */ }
public void Test_10000() { var sut = new E357PrimeGeneratingIntegers(Max: 10000); Assert.Equal(262614, sut.GetSumOfAllPositiveIntegers_org()); }
public void Test_IsNotPrimeGenerating(int number) { var sut = new E357PrimeGeneratingIntegers(Max: number + 1); Assert.False(sut.IsPrimeGenerating(number)); }