mersenneforum.org  

Go Back   mersenneforum.org > Search Forums

Showing results 1 to 6 of 6
Search took 0.01 seconds.
Search: Posts Made By: Dobri
Forum: Homework Help 2021-10-29, 14:25
Replies: 15
Views: 2,150
Posted By Dobri
Here is a hint how the LL (and PRP) computations...

Here is a hint how the LL (and PRP) computations could be made much faster for small prime exponents.
The modulo operation "%" (which in essence is a division) can be replaced by multiplication and...
Forum: Homework Help 2021-10-29, 13:57
Replies: 15
Views: 2,150
Posted By Dobri
To be precise, "long long int" is also needed for...

To be precise, "long long int" is also needed for the prime exponent p = 17.
Forum: Homework Help 2021-10-29, 10:51
Replies: 15
Views: 2,150
Posted By Dobri
Indeed, this is unprotected demo code for the OP...

Indeed, this is unprotected demo code for the OP to get some ideas and choose their own way of coding the task.
Here "long long int" is needed only when computing s*s for the prime exponent p = 19,...
Forum: Homework Help 2021-10-28, 23:02
Replies: 15
Views: 2,150
Posted By Dobri
// Dev-C++ Code #include <iostream> #include...

// Dev-C++ Code
#include <iostream>
#include <math.h>

using namespace std;

bool PrimeCheck(long long int n)
{
long long int i,imax;
if(n<=1){return false;}if(n==2){return...
Forum: Homework Help 2021-10-28, 15:17
Replies: 15
Views: 2,150
Posted By Dobri
I did not provide a complete solution. The OP...

I did not provide a complete solution. The OP still has to compute the Mp from the output I provided.
Also, the OP still has to display the result according to the format in their final cout ...
Forum: Homework Help 2021-10-28, 14:58
Replies: 15
Views: 2,150
Posted By Dobri
// Dev-C++ Code #include <iostream> #include...

// Dev-C++ Code
#include <iostream>
#include <math.h>

using namespace std;

bool PrimeCheck(long int n)
{
long int i,imax;
if (n<=1) return false;if (n==2) return true;if (n%2==0)...
Showing results 1 to 6 of 6

 
All times are UTC. The time now is 07:11.


Thu Jun 30 07:11:30 UTC 2022 up 77 days, 5:12, 0 users, load averages: 1.31, 1.60, 1.55

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.

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