Package net.n1da.dev.euler
Class PE0010
- java.lang.Object
-
- net.n1da.dev.euler.core.Problem
-
- net.n1da.dev.euler.PE0010
-
- All Implemented Interfaces:
Solvable
public class PE0010 extends Problem
Solution for problem 10 "Summation of primes" completed on Fri, 10 Apr 2015, 14:57.- Since:
- 10.04.2015 19:55:07
- 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()
- Specified by:
prepare
in interfaceSolvable
- Overrides:
prepare
in classProblem
- See Also:
Sieve(int)
-
solve
public java.lang.String solve()
Runs the algorithm of the "Sieve of Eratosthenes" and sums up every found prime factor.- Returns:
- the sum of all primes below
max
- See Also:
Sieve.next()
, Sieve of Eratosthenes @ Wikipedia
-
-