Consider the divisors of 30: 1,2,3,5,6,10,15,30. It can be seen that for every divisor d of 30, d + 30/d is prime.
Find the sum of all positive integers n not exceeding 1,00,000 such that for every divisor d of n, d + n/d is prime.
The sum of the number can not be calculated by hand, it is not possible. So I use matlab to find the sum. I personally run the program for the number 5000 ,then I see that the computer takes a long time to find the sum because the program is very calculated. So while run the program , be patient , computer may be take 3-4 hours
Get Answers For Free
Most questions answered within 1 hours.