This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
nice and easy explanation...... thanks!!
It follows from the fact that if 2 p − 1 is a prime, then p must be a prime. Since 3 2 is clearly not a prime, 2 3 2 − 1 is also not a prime.
NOTE : The converse is NOT true!
Those two statements are not logically equivalent
any explaination or proof?
Log in to reply
If you are referring to a Mersenne prime, then this doesn't work for some prime numbers, such as when p=11, 2 1 1 − 1 = 2 0 4 7 , 2 3 ∗ 8 9 = 2 0 4 7
Log in to reply
@Jonny, he said it doesn't work in reverse. Only if 2 p − 1 is prime, then you are sure that p is prime. But it is not necessary that if p is prime, then 2 p − 1 would be prime (you proved that).
No. The function 2^x has the pattern for natural numbers in which the last digit of each output ends in 2, 4, 8, 6 (and continue the pattern.) The number 32 would correspond to the fourth number in this pattern, ie 6. So 2^32 ends in 6. One less this number would end in 5. Therefore 2^32 - 1 is divisible by 5; not prime.
2^32 = 2^4n and last digit of 2^4n is 6 .So last digit of 2^32 -1 = last digit of 2^4n - 1 .i.e. 6-1-5. So it is clear that it is divisible by 5 and hence CAN'T be prime
Note that 2 ≡ − 1 ( m o d 3 )
Therefore, 2 3 2 ≡ ( − 1 ) 3 2 ( m o d 3 ) ≡ 1 ( m o d 3 )
Therefore, 2 3 2 − 1 ≡ 0 ( m o d 3 )
3 divides 2 3 2 − 1 , therefore it is not prime.
I did the same way, and then it struck me that we could use Mersenne prime number format
what is this theorem or method called??
Log in to reply
It's just something I noticed, not something I was taught to do. Call it the Bryenton Method ;)
2^32 = 4294967296 4294967296-1 = 4294967295 (divisible by 5) 2^32 - 1 is not a prime number
It goes on Mersenne prime format. Where 2 p − 1 where p is a prime. Although not all Mersenne numbers are primes, It is safe to assume than anything assuming this format without p being a prime is considered composite number. And since p = 3 2 and 32 is not a prime, 2 3 2 − 1 is definitely not a prime.
2 4 = 1 6 ≡ 1 ( m o d 3 ) ⇒ 2 3 2 ≡ 1 ( m o d 3 ) ⇒ 2 3 2 − 1 ≡ 0 ( m o d 3 ) ⇒ 2 3 2 i s d i v i s i b l e b y 3 . ⇒ 2 3 2 i s n o t a p r i m e .
What is wrong with the above code?
Log in to reply
2 4 = 1 5 ≡ 1 ( m o d 3 ) ⇒ 2 3 2 ≡ 1 ( m o d 3 ) ⇒ 2 3 2 − 1 ≡ 0 ( m o d 3 ) ⇒ 2 3 2 i s d i v i s i b l e b y 3 . ⇒ 2 3 2 i s n o t a p r i m e .
I saw a parenthesis typo \pmod(3} on the second one.
Log in to reply
Thanks!But how does that affect the whole code?
Log in to reply
@Satyendra Kumar – Parentheses always come in pairs though.
By Fermats theorm If (x,y) = 1 [co-primes] x^{y-1} -1 is a multiple of y. Hence 2^{33-1} -1 =M[33] Hence its not a prime
This can be written as a difference of squares, a^2-b^2, which in turn can be written as (a+b)(a-b), both of which are integers greater than one in this case; therefore, because it has these factors, it can't be prime.
255 is a factor which is divisible by 3 so not a prime
The final answer will be- 1594884095 and this number is divisible by 5 (because it has the number 5 at the end) and many other numbers. Therefore, it is not a prime number.
2^n - 1 = multiple of 3 when n is even 2^n +1 = multiple of 3 when n is odd
It's just a pattern I saw. I'm too lazy to find a proof for it mathematically.
From the observations if the power of no. 2 is prime no. Then the no. gained which is subtracted by 1 is prime
if we systematically check the terms of the sequence of (2^n)-1, we find that every 2nth term is divisible by 3. Therefore, since (2^32)-1 is the 32nd term and 32= 2*16, (2^32)-1 is divisible by 3 and is not prime.
(2^32 - 1) = (2^16 - 1) * (2^16 + 1) This is a simple difference of two squares.
Its simple really! We know that a^2-b^2 can always be factorized as (a+b)(a-b). This can be extended to any even exponent. Hence in the given problem, a = 2^16 and b=1! Hence the number can be factorized into 2 natural numbers greater than 1 and thus, it isn't a prime number
the power 32 aint a prime so 2^32-1 is not a prime
the given equation can be refactored as (2^16+1)(2^16-1)= (2^2+1)^8 (2^2-1)^8=(5^8)(3^8) which is divisible by 3 and 5 so it is not prime
2^32 = 4294967296 4294967296-1 = 4294967295 (divisible by 5) 2^32 - 1 is not a prime number
Another alternative solution:
2
1
=
2
(mod 10)..
2
2
=
4
(mod 10)..
2
3
=
8
(mod 10)..
2
4
=
6
(mod 10)..
2
5
=
2
(mod 10), so we have a pattern because all the next multiplications will result in the same rest by
1
0
.
As
3
2
/
4
leaves no remainder
2
3
2
is congruent to
2
4
in mod 10. So the last digit of
2
3
2
−
1
is
5
, and every number of this kind is divisible by
5
. Then the aswer is no.
A faster way with much less math is to use the properties of Mersenne numbers.
If n is a composite number, then 2^{n} - 1 is a composite number as well. As 32 has several factors, therefore 2^{32} - 1 will definitely be a composite number.
Problem Loading...
Note Loading...
Set Loading...
2 3 2 − 1 = ( 2 1 6 − 1 ) ( 2 1 6 + 1 ) B o t h 2 1 6 − 1 a n d 2 1 6 + 1 a r e N a t u r a l n u m b e r s g r e a t e r t h a n 1 T h u s 2 3 2 − 1 i s n o t a p r i m e n u m b e r .