A great question with a great solution.
What is the sum of all positive prime numbers such that \(n\) such that \(n^2 + 2\) is also a prime?
\[(6k\pm 1)^2 +2 = 3(\text{stuff})\] so we only need to check primes less than \(6\)
bye
Another long but nice way to work this is to consider using quadratic reciprocity law
where did u get 6k+/- 1
all primes can be expressed in that form
> 3
Every prime is one of the forms 6k+1 or 6k-1
o ok
why
consider all numbers in mod 6
By euclid division algorithm, every integer can be represented in one of the forms `6k, 6k+1, 6k+2, 6k+3, 6k+4, 6k+5`
yes
eliminate
2 | 6k 2 | 6k+2 3 | 6k+3 2 | 6k+4
okay so 6k+5 same as remainder -1
hmm
what would this do for this
so we have established that a prime can only be of form 6k+1 or 6k-1
oh nvm
ok i got it now
i see so there are other forms like this from different mods
But why mod 6?
it's a well-known result. the \(\pm 1\) is a great tool.
we need that 1^2 out
so we know its a factor of 3
wonder if there is a proof to show this only happens in mod 6
I don't quite understand that question. "such that n such that n^2+2 is also a prime" ???
actually ya that is kinda broken english lol
Such that both n and n^2+2 are primes?
yes
Sorry, I meant this: What is the sum of all primes \(n\) such that \(n^2 + 2\) is also a prime?
still doesnt make sense fully
are u saying n is a sum of primes?
all the primes?
We need to find the sum of all primes n such that both n and n^2+2 are primes.
can i jut see where u got the question actually
p1^2+2 + p2^2+2 + p3^2+2... so we are trying to see the prime numbers where this sum is still prime right
and all the numbers greater than 6 we say are already factors of 3
saw*
You just want to find the sum of the prime numbers that satisfy this statement.
I just got it on a facebook page.
Another fun problem find the sum of all integers \(n\) such that \(n^4+4\) is prime
1 works. even numbers don't.
consecutive integers of any random integers?
im thinking we need to see one that has +/-2 in mod now
mod 5... cases 5k: gotta check this one 5k + 1: can't be prime 5k + 2: can't be prime 5k + 3: can't be prime 5k + 4: can't be prime
that looks neat ! XD there is another shortcut for this too
\[n^4+4 = (n^2)^2 + 4 = (n^2)^2 + 4n^2 + 4 - 4n^2 = (n^2+2)^2 - 4n^2 = \cdots \]
\[(5k)^4 + 4 = 625k^4 + 4 = 625k^4 + 100k^2 + 4 - 100k^2 \]\[= (25k + 4)^2 - (10k)^2 = \cdots\]
holy lol why didn't i think of factoring like this in the general case
5k+2 can be prime
so can 5k+3 and 5k+1 and 5k+4
the reason mod 6 works so well is that 6 is the product of the lowest 2 primes
\[\large (5k+a)^4 + 4\equiv a^4 + 4 \pmod{5} \] and Fermat's little them gives us \[\large a^4\equiv 1 \pmod{5}\]
Fermat's little thm requires \(5\nmid a\) so we only need to check the case \(a = 5k\)
@Mimi_x3 what i meant was \(n^4 + 4 \) can't be prime for 5k + 2.
i'm so dumb. why didn't i think of factoring in the general case
ah okay
nice little fermat application
Join our real-time social learning platform and learn together with your friends!