How to resolve the algorithm Wieferich primes step by step in the fermat programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Wieferich primes step by step in the fermat programming language
Table of Contents
Problem Statement
In number theory, a Wieferich prime is a prime number p such that p2 evenly divides 2(p − 1) − 1 .
It is conjectured that there are infinitely many Wieferich primes, but as of March 2021,only two have been identified.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Wieferich primes step by step in the fermat programming language
Source code in the fermat programming language
Func Iswief(p)=Isprime(p)*Divides(p^2, 2^(p-1)-1).
for i=2 to 5000 do if Iswief(i) then !!i fi od
You may also check:How to resolve the algorithm Dynamic variable names step by step in the RLaB programming language
You may also check:How to resolve the algorithm Elementary cellular automaton/Infinite length step by step in the Phix programming language
You may also check:How to resolve the algorithm Horizontal sundial calculations step by step in the EasyLang programming language
You may also check:How to resolve the algorithm Reverse a string step by step in the Perl programming language
You may also check:How to resolve the algorithm Closest-pair problem step by step in the Prolog programming language