Performance is essentially the same if you write 46558512 as (9*7*11*13*16*17*19).perl -le 'my $i = 0;do { $i += 20 } while( $i%46558512 ); print $i' 232792560
In reply to Re^5: Why is this code so much slower than the same algorithm in C? (2s)
by tilly
in thread Why is this code so much slower than the same algorithm in C?
by wanna_code_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |