Project Euler 6


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php for($i=1;$i<101;$i++){$p+=$i;$q=$q+($i*$i);}echo($p*$p)-$q;

Report this snippet


Comments


You need to login to view comments.