Hacker News new | past | comments | ask | show | jobs | submit login

Well, you can speed it up slightly by using the iterator directly instead of forcing the whole generator into a list.

But on the other hand, you can make it WAY faster by doing it with bit manipulation instead like you're writing C:

https://repl.it/repls/ClearcutElaborateEmbeds




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: