Forum: Programming
2018-05-28, 13:57
|
|
Replies: 2
Views: 1,353
Mersenne prime number search algorithm
1. var k,l,n,s,j,d,c,y,r,x,i,h:biginteger;
begin
x:=31;
i:=32;
h:=1;
for var q:=1 to 100 do
begin
var a:=x div 2;
var b:=a-1;
repeat
|
Forum: Programming
2018-05-28, 13:55
|
|
Replies: 0
Views: 1,262
|
Forum: Programming
2018-05-28, 13:50
|
|
Replies: 6
Views: 2,544
|
Forum: Programming
2015-07-11, 14:54
|
|
Replies: 6
Views: 2,544
Algebraithm for calculating primes
For prime number A, there is only one value B, such that what А + В2 = С2
В = (А-1)/2
С = (А+1)/2
А = С2 – В2 = (С-В)*(С+В)
С – В = 1
If the number of semiprime A = k1 * k2, then there are at...
|