453
you are viewing a single comment's thread
view the rest of the comments
[-] olafurp@lemmy.world 9 points 11 months ago

It's not too bad, it's readable and easily optimised by adding intermediate sums and removing whatever power of 10 you're working on.

[-] nik9000@programming.dev 2 points 11 months ago

My first thought was that it'd be a great oracle for randomized testing.

this post was submitted on 11 Oct 2025
453 points (99.6% liked)

Programmer Humor

33499 readers
289 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS