Login
7 branches 0 tags
Ben (X13/Arch) Minor refactor 7527a2f 2 years ago 1039 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();