3 and 5 works in Haskell. Super smooth
potential ruby solution. feels sloppy