Primality Test
-
Hi I am not sure if this is true or not, but my initial tests gave a positive result To check for primality of P if 4 does not perfectly divide the perimeter of all the rectangles with area (P-1) then P is prime. Regards
The Best Religion is Science. Once you understand it, you will know God.
-
Hi I am not sure if this is true or not, but my initial tests gave a positive result To check for primality of P if 4 does not perfectly divide the perimeter of all the rectangles with area (P-1) then P is prime. Regards
The Best Religion is Science. Once you understand it, you will know God.
Do you have a link to this, so it can be investigated/verified?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
Hi I am not sure if this is true or not, but my initial tests gave a positive result To check for primality of P if 4 does not perfectly divide the perimeter of all the rectangles with area (P-1) then P is prime. Regards
The Best Religion is Science. Once you understand it, you will know God.
-
Not true, fails for 15, 27, 35, ..
Peter "Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
cp9876 wrote:
Not true, fails for 15, 27, 35
Observant and quick, I must say :)
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
cp9876 wrote:
Not true, fails for 15, 27, 35
Observant and quick, I must say :)
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
Hi | Not true, fails for 15, 27, 35 ture... :) i was trying with big numbers and found this working...didnt notice that it failed for small numbers, infact it fails for large numbers also. Regards
The Best Religion is Science. Once you understand it, you will know God.
-
Hi | Not true, fails for 15, 27, 35 ture... :) i was trying with big numbers and found this working...didnt notice that it failed for small numbers, infact it fails for large numbers also. Regards
The Best Religion is Science. Once you understand it, you will know God.
You ought to direct your reply to cp9876...
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
-
Hi | Not true, fails for 15, 27, 35 ture... :) i was trying with big numbers and found this working...didnt notice that it failed for small numbers, infact it fails for large numbers also. Regards
The Best Religion is Science. Once you understand it, you will know God.
-
Hi I am not sure if this is true or not, but my initial tests gave a positive result To check for primality of P if 4 does not perfectly divide the perimeter of all the rectangles with area (P-1) then P is prime. Regards
The Best Religion is Science. Once you understand it, you will know God.
This idea is not clear cut for all primes. For example 13 is a prime number but 13-1=12 is divisible by 4. I mean that what happens if 4 perfectly divides p-1??? Gyan
-
Hi | Not true, fails for 15, 27, 35 ture... :) i was trying with big numbers and found this working...didnt notice that it failed for small numbers, infact it fails for large numbers also. Regards
The Best Religion is Science. Once you understand it, you will know God.
Hey Gui you are giving some what like silly idea. Don't you know 15,27, 35 are not prime. gyan