If you see it as work don't do it - it's a programming 'fun' challenge... not really about the money.
Runs in 0.060 seconds without threading and 0.015s when compiled against boost_thread-mt. Crazy fast![]()
Hi,
Just submitted my attempt. Looks like I could be entry 13!
Mine is c# .Net 4 and runs in just under one second.
Merry XMAS to all readers
Mark
Nice, I wonder where the bottleneck is though since my laptop with a 2Ghz Core 2 Duo does it in 70ms without threading about 40ms with threading. Is optimisation on?
What are GCC optimizations?
This option turns on more expensive optimizations, such as function inlining, in addition to all the optimizations of the lower levels -O2 and -O1. The -O3 optimization level may increase the speed of the resulting executable, but can also increase its size. Under some circumstances where these optimizations are not favourable, this option might actually make a program slower.
lol £5? is that all for what i can see nearly a full days worth of work.
Thanks, recieved and working. Runs in 0.713 seconds
Hmm not much of a bottleneck? 60ms no threading and 15ms with threading. That is without GCC optimizations though yes.
Finally submitted my entry. It runs in around 160ms when compiled for x64 using C#/.NET 4. I'd mainly written it with re-usability in mind rather than for all out performance, I could squeeze a bit more out of it by going from Int64s to ints but that kills the re-usability a bit.
This was my first time using Visual Studio 2010, it's much nicer than 2008.
Should part 9 take 15mins plus? I've sent mine going and its still not finished yet it works correctly with a lower limit but with 2.5million its still chugging away *I think as its taking a nice solid 25% of CPU time but only 1,736K of memory
PC spec Intel Q6600 @ 2.4Ghz with 4GB Ram.
Blackvault
Thanks, all workingI get it at 125ms on x64.
Also, awesome christmas tree![]()