{
  "id": 22639211,
  "title": "A decades-old bug in Knuth's long division",
  "url": "https://urgent.news/2026/11/29/a-decades-old-bug-in-knuths-long-division",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-29T18:48:55.000Z",
  "source": {
    "name": "Lobsters",
    "slug": "lobsters",
    "url": "https://kolja.rs/algorithm-d/"
  },
  "original_language": null,
  "account": "In the article, the author recounts their experience while implementing Algorithm D, long division from Donald Knuth's \"The Art of Computer Programming\". While working on the algorithm, the author found a bug that had gone unnoticed for decades in implementations of the algorithm in cryptographic libraries. The author had been avoiding division at all costs while building a library for arithmetic over prime fields, as division is more complex and computationally expensive than multiplication. The author then decided to implement long division and used Knuth's Algorithm 4.3.1D as a reference. While implementing the algorithm, the author encountered a bug that caused the algorithm to produce incorrect results for certain inputs. This bug was eventually discovered and a theorem on the correctness of the algorithm was created in the author's honor.",
  "summary": null,
  "summary_source": "publisher",
  "key_points": [
    "Author discovered decades-old bug in Knuth's long division algorithm",
    "Bug caused incorrect results for certain inputs in cryptographic libraries",
    "Theorem on algorithm correctness created in author's honor"
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}