First two consecutive prime numbers greater than are and respectively. Let be the smallest prime factor of . Also, let be the units digit of . What is the value of ?
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.
Since p 1 is prime, it is not divisible by 3 . Hence, either p 1 − 1 or p 1 + 1 is divisible by 3. This means ( p 1 − 1 ) ( p 1 + 1 ) = p 1 2 − 1 is certainly divisible by 3 (One could use the Fermat's theorem to reach the same conclusion). Similar argument holds for p 2 . Hence we have,
p 1 2 + p 2 2 ≡ 2 ( mod 3 )
∴ p 1 2 + p 2 2 ≡ 5 ( mod 3 )
Hence S has p = 3 as its smallest prime factor.
Finding units digit is easy. Since both numbers end with 9 , their squares would end with 1 and sum of their squares would end with 2 . Hence the units digit of S would be q = 7 .
Hence, p + q = 1 0