模組式指數計算機
用精確的大數快速計算b^e mod m,並查看費馬小定理是否適用。
在您的瀏覽器中執行。您的檔案不會離開裝置。 瞭解如何驗證
…
使用方法
- 1第1步:開啟模組式指數計算機並輸入內容
輸入數字或文字、新增檔案,或選擇所需選項。不會上傳任何內容:一切都保留在您的瀏覽器中。
- 2第2步:模組式指數計算機能做什麼
用精確的大數快速計算b^e mod m,並查看費馬小定理是否適用。.
- 3第3步:查看結果並比較
結果會立即顯示。更改一個數值,看看答案如何變化,然後保留符合您情況的數字。
- 4第4步:複製或儲存
複製結果或下載。做重要決定前,請向官方來源或專業人士確認。
關於此工具
Enter a base b, an exponent e and a modulus m. The calculator returns b^e mod m using square-and-multiply, so huge exponents are instant, plus the number of bits in e and a Fermat check.
方和乘
The exponent is read in binary. For each bit the running value is squared, and multiplied by b when the bit is 1, always reduced mod m. This needs only about log₂(e) steps.
費馬檢查
If m is prime and does not divide b, then b^(m−1) ≡ 1 (mod m). The tool reports whether b^e ≡ 1 with gcd(b, m) = 1; with e = m − 1 a failure proves m is not prime. The exponent must not be negative and may have up to 300 digits.
計算示例
7^560 mod 561 = 1 even though 561 = 3 × 11 × 17 is composite, a Carmichael number.
獲得最佳結果的提示
在相信結果之前先檢查每一個輸入項,因為一個錯誤的數字就會改變整個答案。請使用工資單、賬單、證書或合同上的準確數字,並記下計算日期。稅率、門檻和規則會不時變化,因此對於稅費和法律事務,請將結果視為估算,並與本頁註明的官方來源核對。您可以嘗試任意多個方案;不會儲存或傳送任何內容,重新整理頁面會清空輸入。
要點
- 分類: 數學與科學
- 在瀏覽器中執行,無需註冊,無需上傳。
- 您輸入的資訊保留在裝置上。
- 提供多種語言。
- 內容最後稽核日期:
常見問題
這項指數可以有多大?
數百個位數.
卡米克爾號碼是什麼?
通過所有共素基的費馬測試.
如果e是0?
The result is 1.
這樣的數字是不是可以負?
Yes; the result is in 0 … m − 1.
