note
ichimunki
You may as well write
<code>
for($i=$o; $i<=$e; $i++){
</code>
as
<code>
print "2 is prime\n" if $o == 2;
$o++ if $o % 2;
for my $i ( $i=$o; $i<=$e; $i+=2 ){
</code>
That way you start on an odd number and account for the only even number which is prime. There is no need to check even numbers after 2.
143755
143755