Login
7 branches 0 tags
Ben (X13/Arch) Simplified things a little 0643405 9 days ago 1260 Commits
nujel / benchmark / euler1 / php.php
<?php

function bench(){
	 $ret = 0;
	 for($i = 0; $i < 10000000; $i++){
		if((($i % 3) == 0) || (($i % 5) == 0)){
			$ret += $i;
		}
         }
	 return $ret;
}
echo "The sum is: " . bench();