mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Programming

Reply
 
Thread Tools
Old 2022-03-18, 05:16   #1
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

22·1,063 Posts
Default GMP PRP programs

This is the first in a series of three GMP based PRP programs; It does A times Fermat PRP tests followed by B times Lucas PRP tests. The second program will do the same but with "Jacobi strength" ; The third will do strong tests.

Note parts of the codes can be replaced with mpz_powm(res, base, something, align);
Attached Files
File Type: c gmp_fermat_lucas.c (4.0 KB, 75 views)
File Type: c gmp_euler_lucas.c (4.3 KB, 78 views)
File Type: c gmp_miller-rabin_lucas.c (5.0 KB, 78 views)

Last fiddled with by paulunderwood on 2022-03-18 at 16:05
paulunderwood is offline   Reply With Quote
Old 2022-04-29, 14:18   #2
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

22×1,063 Posts
Default

Here is a program that does Miller-Rabin (Fermat) and the same sort of thing in Lucas terms.
Attached Files
File Type: c gmp_miller-rabin_strong-lucas.c (6.1 KB, 43 views)

Last fiddled with by paulunderwood on 2022-04-29 at 14:52 Reason: fixed usage words
paulunderwood is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run these C++ programs? sweety439 sweety439 4 2020-06-08 16:16
tones from c programs davar55 Programming 12 2015-12-13 03:41
they used to be called programs... chappy Lounge 15 2012-08-11 21:02
GPU Testing programs nucleon GPU Computing 5 2011-08-21 04:24
factoring programs henryzz Factoring 6 2007-09-19 13:47

All times are UTC. The time now is 16:52.


Wed Aug 10 16:52:47 UTC 2022 up 34 days, 11:40, 4 users, load averages: 1.29, 1.61, 1.69

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔