Skip to content

Instantly share code, notes, and snippets.

@cpjolicoeur
Created February 6, 2010 14:19
Show Gist options
  • Save cpjolicoeur/296739 to your computer and use it in GitHub Desktop.
Save cpjolicoeur/296739 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl -l
$o=1;{grep!($o%$_),2..$o++or print$o;redo}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment