October 16, 2009, 2:45 pm by Rafael Coelho
A few days ago I introduced a friend of mine Jorge Rocha to SPOJ an online judge system for user-submitted programs, one of the first problems that he tried was the Prime Generator it consisted in finding all primes in a given range of numbers, after some time and few different algorithms he asked me if I had any tips to help him, although he had the correct algorithm (Sieve of Eratosthenes) something was clearly missing, the solution wasn’t fast enough and I had no clue where to go from there, so as usual when a question like that comes up I resort to Mauro Persano… and obviously he knew the answer, he taught us how to apply a heuristic to the algorithm to help solve the problem and after doing so the code worked and the solution was approved.
Continue reading ‘Finding prime numbers with Javascript’ »
Tags:
algorithm,
chrome,
eratosthenes,
JVM,
opera,
primalty,
prime,
rhino,
sieve,
SPOJ,
v8 Category:
javascript |
CommentJuly 1, 2009, 3:37 pm by Rafael Coelho
[UPDATE - july 2nd]
Since my post yesterday, the firebug developers have released another version of the tool (1.4.0b4) it seems more stable, great job!
————
When Mozilla launched Firefox 3.5 a couple days ago, I was forced to upgrade my FB (firebug) to the new 1.4 beta version, although the new FB has been greatly improved it still has a lot bugs as you’d expect on a beta version, but that’s not the bad part, the new FF3.5 is really fast and has really cool new features but FB is making the browser choke and freeze all the time, it’s no news that FB has become more and more slow and buggy each version.
Continue reading ‘What’s going on with Firebug?’ »