You're viewing a comment by GiM and its responses.

August 29, 2008, 18:58

I've written mine in D using atkin sieve and it goes about 1s :)

http://dsource.org/projects/tango/wiki/BitArrayVsArrayOfBoolsExample

But solution of a friend of mine beat me to the ground even more than yours.
He wrote it in Haskell in 12 line (including coments and blank lines!) which after some shrinking (but still readable though) went down to 4 iirc :) I'm not sure weather his solution is available online.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type first 3 letters of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.