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

RSS Icon Subscribe to comments

You need to login to post a comment.