Search found 3 matches

by Stack
Wed Sep 08, 2010 8:46 pm
Forum: Challenges Solved
Topic: Primal Pi
Replies: 8
Views: 1594

My python code ran in about 3 hours. It used the Miller-Rabin test. OPTIMIZATIONS: In response to user theStack (Not to be confused with me, Stack) your optimization really wasn't that great. If you want, Wikipedia "Prime Sieve" or "Sieve of Erastosthenes." Basically, if it's mod...
by Stack
Wed Sep 08, 2010 8:02 pm
Forum: Challenges
Topic: Primal Pi
Replies: 33
Views: 48139

Hm. I found a prime (size 1000 < x < 1200) but it doesn't seem to be the right one. But my program cannot find another prime, which has that much digits :-/ Right. Well, then I need to adjust my script and try again. [later]: Damn typo. Got it now. UGH. You totally threw me off by two days, I thoug...
by Stack
Wed Sep 08, 2010 7:57 pm
Forum: Challenges
Topic: UpCount - recursive calamity
Replies: 18
Views: 27414

s_ha_dum wrote:
lechat wrote:what about 'java -X'? Then you can use 'java -Xss1024M' for 1Gb stack size...
But do you really need it?
Thank you. And yes, I did really need it. This was the only reason the code wouldn't run. As soon as I ran it with 'java -X ...' it ran without issue.
Same thing happened to me.