frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Knuth Test Using Claude Sonnet 4.6 Problem 1.1.2

1•daly•3h ago
Knuth Tests using Claude Sonnet 4.6 problem 1.1.2

Knuth Art Of Computer Programming V1 p9 ----------------------------------------------------------------------- Algorithm E (Euclid's algorithm). Given two positive integers m and n, find their greatest common divisor, that is, the largest positive integer that evenly divides both m and n.

E1 [Find remained] Divide m by n and r be the remainder. (We will know that 0 <= r < n)

E2 [Is it zero?] If r = 0, the algorithm terminates, n is the answer

E3 [Reduce] Set m = n, then n = r, then go back to step E1 -----------------------------------------------------------------------

Prove that m is always greater than n at the beginning of step E1, except possibly the first time this step occurs.

======================================================================== Claude Sonnet 4.6 ========================================================================

Proof

We want to show that m > n at the start of E1, for every iteration except possibly the first.

First Execution of E1

When E1 is executed the first time, m and n are simply whatever positive integers were given as input. There is no guarantee that m > n, which is why the exception exists. For example, with m = 2166 and n = 6099, we have m < n on the first call.

All Subsequent Executions of E1

After the first execution of E1, we reach E3 only if r ≠ 0 (checked at E2). At E3, the replacements are:

m = n n = r

Then we return to E1. So at the start of the next E1, the new values are:

m_new = n_old and n_new = r_old

From E1, we know r is the remainder when m is divided by n, so by definition:

0 ≤ r < n

Since E3 is only reached when r ≠ 0 (E2 would have terminated otherwise), we tighten this to:

0 < r < n

Therefore:

n_new = r_old < n_old = m_new

Which gives us:

m_new > n_new

Conclusion

After the first iteration, the new m is always the old n, and the new n is always the remainder r, which is strictly less than the old n. Therefore m > n holds at the beginning of every execution of E1 except possibly the first, which is what we wanted to prove. □

Show HN: NeoMud – A multiplayer dungeon game with AI agents that QA and playtest

https://github.com/terrymaster/NeoMud
1•terrymaster•1m ago•0 comments

Weight-loss jab could be made for $3 a month, study finds

https://www.theguardian.com/global-development/2026/mar/06/generic-drugs-weight-loss-semaglutide-...
1•sandebert•4m ago•0 comments

Keith Lynch's timeline of net related terms and concepts

https://keithlynch.net/timeline.html
1•TigerUniversity•5m ago•0 comments

Show HN: Dead-simple job management tool for solo contractors ($0 for now)

https://fieldflow-nine.vercel.app/auth
1•Mike_Handyman•6m ago•0 comments

'Free' Sterling in New York and Switzerland in the 1940s (2017)

https://ssrn.com/abstract=2972147
1•johntfella•7m ago•0 comments

Next Embedding Prediction Makes World Models Stronger

https://arxiv.org/abs/2603.02765
1•lucrbvi•7m ago•0 comments

RFK Jr.'s anti-vaccine policies are "unreviewable," DOJ lawyer tells judge

https://arstechnica.com/health/2026/03/rfk-jr-can-promote-getting-measles-with-impunity-doj-lawye...
2•virgildotcodes•9m ago•0 comments

Ruby on Rails homepage updated for "the agentic age"

https://rubyonrails.org/
1•developer5502•10m ago•1 comments

AI Harness Engineering

https://martinfowler.com/articles/exploring-gen-ai/harness-engineering.html
1•ColinEberhardt•10m ago•0 comments

Black-box AI and cheap drones are outpacing global rules of war

https://restofworld.org/2026/anthropic-ai-and-iran-drone-warfare/
1•Brajeshwar•12m ago•0 comments

Scientific datasets are riddled with copy-paste errors

https://www.sciencedetective.org/scientific-datasets-are-riddled-with-copy-paste-errors/
1•englund•21m ago•0 comments

Anybody know what happened to the GNU site?

https://web.archive.org/web/20260305232513/https://www.gnu.org/
2•birdculture•22m ago•1 comments

I built a dashboard to manage domains across all my registrars

https://keep.domains/
1•muhammedilyasy•23m ago•0 comments

Const – Ian Lance Taylor (2010)

https://www.airs.com/blog/archives/428
1•cristaloleg•23m ago•0 comments

Show HN: Procedural Music Workstation in the Browser

https://manager.kiekko.pro/tracker/
1•timo_h•23m ago•0 comments

European Economies Are Not Stagnating

https://jacobin.com/2026/03/us-europe-comparative-productivity-statistics
1•robtherobber•23m ago•0 comments

Ask HN: Are subagents making flagship AI models feel like managers?

2•vgoncharenko•28m ago•0 comments

How to Found a Company in Germany: 16 "Easy" Steps and Lots of Pain

https://eidel.io/posts/how-to-found-a-company-in-germany-14-easy-steps-and-lots-of-pain
2•olieidel•29m ago•1 comments

The Digital Credentials API origin trial

https://developer.chrome.com/blog/digital-credentials-api-origin-trial
1•pabs3•31m ago•0 comments

LibreSprite – open-source pixel art editor

https://libresprite.github.io/
2•nicoloren•36m ago•0 comments

If AI has a bright future, why does AI think it doesn't?

https://claude.ai/share/5373cca0-f085-40a7-9a58-3f30b4f76195
1•JCW2001•36m ago•1 comments

What Requests Taught Me About Marriage

https://kennethreitz.org/essays/2026-03-06-what_requests_taught_me_about_marriage
1•kennethreitz•37m ago•0 comments

Language Tool – Your writing assistant

https://languagetool.org/
1•smartmic•37m ago•0 comments

Show HN: OgBlocks – A zero-install animated UI component library

https://ogblocks.dev
1•karanzhacker•38m ago•0 comments

Slop Forks Leaderboard

https://slopforks.com/
1•karel-3d•39m ago•0 comments

Chardet v7.0.0 presents unacceptable legal risk to users

https://github.com/chardet/chardet/issues/331
1•vintagedave•39m ago•0 comments

Show HN: What Installing a New OS Taught Me About Disk Partitions

https://access2vivek.com/what-installing-debian-taught-me/
2•access2vivek•40m ago•0 comments

Show HN: ParseForce – I got tired of brittle email parsers so I built this

https://www.parseforce.io
1•nikola470•41m ago•0 comments

Show HN: ChaosRank – which microservice should you break next?

https://github.com/Medinz01/chaosrank
1•Medinz01•42m ago•0 comments

Show HN: PenguWarpOS – OS SIM made in py for Linux newbies

https://github.com/theidioticdev/penguwarpos/tree/testing
2•theidioticdev•43m ago•0 comments