391
you are viewing a single comment's thread
view the rest of the comments
[-] olafurp@lemmy.world 5 points 15 hours 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 1 points 14 hours ago

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

this post was submitted on 11 Oct 2025
391 points (100.0% liked)

Programmer Humor

26827 readers
1659 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 2 years ago
MODERATORS