Prime + 4 = Square?

How many primes are 4 less than a perfect square?

4 1 2 3

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.

7 solutions

Nihar Mahajan
Sep 24, 2015

Let the prime number be p p . Then we have p + 4 = n 2 p+4=n^2 for some integer n n .

p + 4 = n 2 p = n 2 4 p = ( n + 2 ) ( n 2 ) p+4=n^2 \Rightarrow p=n^2-4 \Rightarrow p=(n+2)(n-2)

Since p p is a prime , its smallest factor is 1 1 which means n 2 = 1 n = 3 p = 3 2 4 = 9 4 = 5 n-2=1 \Rightarrow n=3 \Rightarrow p=3^2-4=9-4=\boxed{5} .

There is also a possibility that p = ( 1 ) × ( p ) p=(-1)\times (-p) and in this case since 1 > p -1>-p , n + 2 = 1 n = 3 p = 3 2 4 = 9 4 = 5 n+2=-1 \Rightarrow n=3 \Rightarrow p=3^2-4=9-4=\boxed{5} .

Thus in both cases , p = 5 p=5 is only solution and the total number of solutions possible is 1 \boxed{1} .

Nice solution!

Rohit Udaiwal - 5 years, 8 months ago

Log in to reply

Thanks! :)

Nihar Mahajan - 5 years, 8 months ago

P = 3^2 - 4 = 5 .... don't worry by fix it

Jaime Maldonado - 5 years, 7 months ago

What about 29 is a prime and 29-4=25 which is perfect square so you are wrong.

shyam upadhyay - 4 years, 9 months ago

Log in to reply

What did u mean to say?

Sayak Paul - 4 years, 1 month ago

You don't understand.

William Ly - 2 years, 1 month ago

P.S. it is 4 LESS than a square, not four MORE :)

Jeff Giff - 1 year ago

Why -3 is not considered a solution?

Waldemar Barrera - 5 years, 8 months ago

Log in to reply

negative number can't be a prime number

Priyaveda Janitra - 5 years, 8 months ago

1 isn't a prime number because a prime number needs two integer factors.

Josh Collins - 5 years, 8 months ago

Log in to reply

Yes .... 1 y P. P = (n + 2)(n - 2) (n + 2) = 1 or (n - 2) = 1 That's what he said and is correct.

Jaime Maldonado - 5 years, 7 months ago

I think -3 is a prime Number, so -3 + 4= 1, and 1 is a square

Waldemar Barrera - 5 years, 8 months ago

Log in to reply

@Waldemar Barrera Yeah but -3 is divisible by 1, 3, -1 and -3, there fore making it a composite number.

Herbert Stewart - 5 years, 8 months ago

Log in to reply

@Herbert Stewart Is the same for every prime Number p, the divisors aré 1,-1, p,-p. I think the trouble is define the prime Numbers only positives Numbers.

Waldemar Barrera - 5 years, 8 months ago

Log in to reply

@Waldemar Barrera Lemme make it clear :)

"A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself."

But all negative numbers have divisor as 1 -1 as well as they are less than 1 1 , thus , none of negative number is a prime :)

Nihar Mahajan - 5 years, 8 months ago

Log in to reply

@Nihar Mahajan Ahhhh. That actually makes it very clear for me. Thanks Nihar!

Herbert Stewart - 5 years, 8 months ago

Log in to reply

@Herbert Stewart Welcome! :)

Nihar Mahajan - 5 years, 8 months ago

@Nihar Mahajan Nihar,I think if you're considering negative factors then 1 , p -1,-p are also factors of a prime p p .So thought of in that way,each prime number has 4 factors.I think a prime number is simply defined to be a natural number.

Abdur Rehman Zahid - 5 years, 7 months ago

  • 3 is not a prime no. because a prime no. defines as a natural no greater than 1.When we say natural no. it means commonly in nature and an obvious number therefore natural.no. is referring to whole no. And non-negative.no.

Wangsky Wangers - 5 years, 8 months ago

what about 221+4=225

Ajay Semil - 5 years, 8 months ago

Log in to reply

221 221 is not a prime my friend...

Nihar Mahajan - 5 years, 8 months ago

13*17 = 221

Nathan Richardson - 1 year, 12 months ago

you may also use the fact :

p + 4 = 0 or 1 mod4

Dev Sharma - 5 years, 8 months ago
Hetansh Mehta
Sep 26, 2015

I thought this once in my mind( I know this is not a valid solution and I shouldn't be posting it anyways) and was amazed to find that only one such number existed, increased my respect for 5...

only (5)+4 = 9

Noel Lo
Jul 16, 2018

Similar to @Nihar Mahajan , but with more detailed explanation:

Let the prime number be p p . Then p + 4 = n 2 p+4=n^2 which means that p = n 2 4 = ( n 2 ) ( n + 2 ) p=n^2-4=(n-2)(n+2) . Considering that p p is a prime, should ( n 2 ) (n-2) be greater than 1, then p p would have two non-trivial factors (factors other than 1 and p p itself) which violates the definition of a prime. Thus n 2 = 1 n-2=1 which means n = 2 + 1 = 3 n=2+1=3 and in turn n + 2 = 3 + 2 = 5 n+2=3+2=5 . Finally p = 5 p=5 and indeed this is the ONE and only one such prime.

Tushar Kaushik
Sep 24, 2015

5+4=9 which is a perfect square

Don Weingarten
Feb 5, 2019

5 + 4 = 9 is the only solution I can find which fits. Let some prime p plus 4 equal a perfect square, so p + 4 = x squared. Therefore p = x squared -4. Now since this is equal to a prime, one of the factors must be x and the other must be 1. For the case of 1, 1 + 4 squared is 25, which is trivially a perfect square.

Jaime Maldonado
Oct 22, 2015

Good .... I like prime number. What is the significance or meaning for you? (P - 1)!/P! .... Where P is prime number and ( ! ) is prime factorial. (2 - 1)/2 * (3 - 1)/3 * (5 - 1)/5 * .....and so

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...