Made prime.simple() faster

Improved the speed of prime.simple().

Source: http://codereview.stackexchange.com/questions/15240/simple-trial-division-in-javascript