[Number_Theory] Add Miller-Rabin and Pollard-rho factorisation to the explorer
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 30/100
調査の方向性
Start with the primality and factorisation code in Number_Theory/src/core/NumberTheoryEngine.cpp at the cited line ranges, then inspect Number_Theory/src/widgets/FactorizationTreeWidget.cpp and the QML views. First check how the existing engine exposes algorithms to the UI and how its tests measure primality and factorisation. Done means the stated large-prime timing and factorisation example pass, with the result displayed as a tree.
索引モデルが issue の本文から書いたものです。
説明
Summary
Primality uses trial division (O(sqrt n), about 5e8 iterations near 2^63, and i*i overflows there). Factorisation, the most visual topic, exists only as an unused primeFactorization() and in the deleted widget UI.
Location
Number_Theory/src/core/NumberTheoryEngine.cpp:298-309Number_Theory/src/core/NumberTheoryEngine.cpp:373-405Number_Theory/src/widgets/FactorizationTreeWidget.cpp
Evidence
UBSan harness: testPrimality(9223372036854775783) reports NumberTheoryEngine.cpp:304:29: runtime error: signed integer overflow: 3037000505 * 3037000505 and had not finished after 120 s.
Expected
Instant deterministic primality for all 64-bit n and a factorisation tree visualisation.
Proposed fix
Implement deterministic Miller-Rabin (bases 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37) with __int128 mulmod, Pollard's rho (Brent), and a new Prime Factorization algorithm with a QML tree view. Keep trial division as an educational "step mode" for small n.
Acceptance criteria
- isPrime(2^63-25) returns true in < 10 ms
- Factorisation of 600851475143 -> 71 * 839 * 1471 * 6857 shown as a tree
Repository audit, November 2026 · Phase 9 · New features · evidence: found by code reading · ref core-cpp-033
Generated by Claude Code
- 主要言語
- C++
- スター
- 2
- フォーク
- 1
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ibra-kdbra/Math-Problems のほかの issue
-
area: security-algorithms priority: P1 size: XS type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ibra-kdbra/Math-Problems#367 ·
ibra-kdbra/Math-Problems の issue をすべて見る
似ている issue
-
TransformInteract: a circle drag through the centre sets Scale to its minimum, which can't grow backオープンdifficulty:easy prio:low type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
NatronGitHub/openfx-supportext#311 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
CachyOS/packageinstaller#211 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
OpenEmu-Silicon/OpenEmu-Silicon#920 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100