Package net.n1da.dev.euler
Class PE0003
- java.lang.Object
-
- net.n1da.dev.euler.core.Problem
-
- net.n1da.dev.euler.PE0003
-
- All Implemented Interfaces:
Solvable
public class PE0003 extends Problem
Solution for problem 3 "Largest prime factor" completed on Tue, 8 Apr 2015, 00:23.- Since:
- 07.04.2015 23:41:36
- 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 finally finds the largest prime factor.- Returns:
- the largest prime factor
- See Also:
Sieve.next()
, Sieve of Eratosthenes @ Wikipedia
-
-