Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not the same class because it's a high-level language, but this J version is worth mentioning at 26 bytes, and is beautifully readable if you're familiar with J:

    (]=3+4=*)[:+/(>,{;~i:1)&|.
Disclaimer: I am not the original author of this snippet.

Try it online:

https://tio.run/##y/qvpKeepmBrpaCuoKNgoGAFxLp6Cs5BPm7/NWJtjb...



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

Search: