Our great sponsors
-
advent-of-code-dev-2021
Interactive development environment and runner for Advent of Code challenges
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
My solution. Conceptually straightforward (just do the thing), although there's a little number theory in Part 2. I'm not in love with my code here; suggestions for improvement are as-always welcome.
My peggy fix is here if someone else wants to try, didn't use #ifdefs so the TemplateHaskell probably breaks for <9.0 .