Skip to content

Instantly share code, notes, and snippets.

@hideo55
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hideo55/f7c7364b972d8aec63b9 to your computer and use it in GitHub Desktop.
Save hideo55/f7c7364b972d8aec63b9 to your computer and use it in GitHub Desktop.
Enumerate multiple of 3 in one-liner(69byte).
perl -e 'sprintf("%b",$_)=~/^(0|1(01*0)*1)+$/&&print$_,$/for 0..1e2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment