lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 2011-Jan-21 (Fri) at 10:56 (+0100), Axel Kittenberger wrote:

>> Try this simplified version (same algorithm you used):
>> 
>> [ - - - ]
>> 
>>         for kk = k*2, max, k do

faster :   for kk = k*k, max, k do

------------------------------------------------------------------------
Joseph Manning / Computer Science / UCC Cork Ireland / manning@cs.ucc.ie
------------------------------------------------------------------------