The Best way to predict your future is to create it - Every great individual common man
The Best way to predict your future is to create it - Every great individual common man
Gabriel
Software Surgeon
SCJA
~Currently preparing for SCJP6
SCJA
~Currently preparing for SCJP6
SCJA
~Currently preparing for SCJP6
SCJA
~Currently preparing for SCJP6
Gabriel
Software Surgeon
SCJA
~Currently preparing for SCJP6
Gabriel
Software Surgeon
SCJA
~Currently preparing for SCJP6
Brian Legg wrote:No point using 3 loops when 1 will do I always say
Nice job though!
Gabriel
Software Surgeon
Gabriel Claramunt wrote:I guess I overcomplicated a little
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Garrett Rowe wrote:
Gabriel Claramunt wrote:I guess I overcomplicated a little
No this is over complicating it. Here is a sieve inspired by this paper. (Look ma' no arrays!)
Gabriel
Software Surgeon
Gabriel Claramunt wrote:
Garrett Rowe wrote:
Gabriel Claramunt wrote:I guess I overcomplicated a little
No this is over complicating it. Here is a sieve inspired by this paper. (Look ma' no arrays!)
On the other hand, I've used boolean primitive arrays because should be pretty fast. If I recall correctly I did a fancy implementation with collections but it was slow...
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Garrett Rowe wrote:
Gabriel Claramunt wrote:
Garrett Rowe wrote:
Gabriel Claramunt wrote:I guess I overcomplicated a little
No this is over complicating it. Here is a sieve inspired by this paper. (Look ma' no arrays!)
On the other hand, I've used boolean primitive arrays because should be pretty fast. If I recall correctly I did a fancy implementation with collections but it was slow...
I'm quite sure that that method is probably slower than one that uses arrays (I haven't timed it though)
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
And tomorrow is the circus! We can go to the circus! I love the circus! We can take this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|