All pastes #912003 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-21 01:46 UTC
rendered paste body
<?php
$sum = 0;


while($sum < 20){
        $sum += 1/(2^$x);
        $x++;
        if($x%1000000 == 0){
                echo "x: $x     sum: $sum\n";
        }
}

echo "\nDone: $x $sum\n";