All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Prime Number Arithmetic (Posted on 2004-11-19) Difficulty: 4 of 5

Find all primes p such that 2^p + p^2 is also prime.

Prove there are no others.

See The Solution Submitted by Erik O.    
Rating: 4.1250 (8 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution solution Comment 8 of 8 |
This has already been solved by others, but here is my solution.

First, note that p=2 is not a solution.

For any odd number (prime or not), 2^odd is 2 mod 3.
Odd numbers themselves can be 0, 1, or 2 mod 3.
But:
 squaring a 2 mod 3 number produces a 1 mod 3 number.
 squaring a 1 mod 3 number produces a 1 mod 3 number.
 squaring a 0 mod 3 number produces a 0 mod 3 number.

So for all odd numbers that are not divisible by 3, the formula (in mod 3) produces 2+1=3 which is 0 mod 3 and not a prime.
That is, not a prime except for 3 itself which is the only prime which is divisible by 3.

So 3 is the only answer.

  Posted by Larry on 2025-05-29 10:34:24
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (5)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2025 by Animus Pactum Consulting. All rights reserved. Privacy Information