Skip to content

Instantly share code, notes, and snippets.

@hoffmanc
Created June 29, 2010 20:51
Show Gist options
  • Save hoffmanc/457799 to your computer and use it in GitHub Desktop.
Save hoffmanc/457799 to your computer and use it in GitHub Desktop.
map{$s=0;for$i(1..$_-1){$s+=$_% $i eq 0?$i:0}print"$_\n"if$s==$_}1..10e3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment