Skip to content

Instantly share code, notes, and snippets.

@zaz600
Created August 16, 2017 13:58
Show Gist options
  • Save zaz600/c626805e2f31664c0b88d0f620931924 to your computer and use it in GitHub Desktop.
Save zaz600/c626805e2f31664c0b88d0f620931924 to your computer and use it in GitHub Desktop.
FizzPuzz perl-style
t,f,b,s,j,p=3,"zFzi","zuzB",sorted,"".join,5;y,z=2,0;list(map(print,[next(filter(lambda i:isinstance(i,str),((i%t,i%p).count(z)!=y or j(s(f))+j(s(b)),i%t or j(s(f)),i%p or j(s(b)),str(i)))) for i in range(1,y*p**y)]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment