- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
3 Posted Topics
You should really consider importing individual classes for an obvious reason not stated here, load time and space consumption. Eclipse will do this for you, but to minimize the time it takes to load all of your libraries, compile; etc., even in a JIT compiler, you really should load individual …
sieves are much faster because they skip a bunch of numbers. There are three really well known ones linked to from the erastothenes wiki page. They are Atkins (fastest), Sundaram (next best), Erastothenes. http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes http://en.wikipedia.org/wiki/Sieve_of_Sundaram http://en.wikipedia.org/wiki/Sieve_of_Atkin class Erastothenes{ //TODO sieve of erastothenes for numbers <= 1,000,000 private: //initialize array of …
this looks kind of cool. http://www.eklavya.org/magic9-1.html
The End.