Skip to main content
12 events
when toggle format what by license comment
Jul 6, 2021 at 10:03 comment added mrmonkington the 2%m bit is very pleasing
Jun 30, 2021 at 14:06 comment added LSpice Isn't it usual to credit commenters like @Lynn for shortenings of the original solution?
Jun 29, 2021 at 23:13 comment added dingledooper @Lynn Oh heh, you even removed a space (my Haskell knowledge is non-existent, btw).
Jun 29, 2021 at 23:12 comment added lynn @dingledooper Brilliant!
Jun 29, 2021 at 23:11 history edited lynn CC BY-SA 4.0
deleted 17 characters in body
Jun 29, 2021 at 23:10 comment added dingledooper It looks like m%d=div(275*m)9-30+d-mod 2 m would work for 28.
Jun 29, 2021 at 22:50 history edited lynn CC BY-SA 4.0
added 89 characters in body
Jun 29, 2021 at 22:29 comment added lynn @xnor Nice idea! I found one that seems to work.
Jun 29, 2021 at 22:29 history edited lynn CC BY-SA 4.0
deleted 6 characters in body
Jun 29, 2021 at 22:24 comment added xnor Looks like this still works: Try it online Though I wonder if some rational approximation with div would be shorter.
Jun 29, 2021 at 19:31 history edited lynn CC BY-SA 4.0
deleted 3 characters in body
Jun 29, 2021 at 19:24 history answered lynn CC BY-SA 4.0