Skip to content

Instantly share code, notes, and snippets.

@kazua
Created October 15, 2013 13:04
Show Gist options
  • Save kazua/6991264 to your computer and use it in GitHub Desktop.
Save kazua/6991264 to your computer and use it in GitHub Desktop.
Project Euler Problem 6(PHP)
<?php
//write kazua
echo pow(array_sum(range(1, 100)), 2)
- array_sum(array_map(function ($value) {
return pow($value, 2);
},
range(1, 100)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment