Package net.n1da.dev.euler
Class PE0046
- java.lang.Object
-
- net.n1da.dev.euler.core.Problem
-
- net.n1da.dev.euler.PE0046
-
- All Implemented Interfaces:
Solvable
public class PE0046 extends Problem
Solution for problem 46 "Goldbach's other conjecture" completed on Sun, 29 May 2016, 07:28.- Since:
- 22.05.2016 14:23:46
- Author:
- Nico Danneberg
- See Also:
- Problem @ Project Euler, Solution @ Ni-Da-Net
-
-
Method Summary
-
Methods inherited from class net.n1da.dev.euler.core.Problem
finish, getResult, getRuntime, toString
-
-
-
-
Method Detail
-
prepare
public void prepare()
-
solve
public java.lang.String solve()
It solves the problem by checking every odd beginning with 3 if:- it is no prime
- there is a prime when a double square is subtracted
- Returns:
- the first found odd that does not match the both conditions
-
-