You are not signed in.

To save solutions, earn points and appear on the leaderboard. register or sign in.
Two integers \(a\) and \(b\) are said to be relatively prime if the only positive integer that divides both of them is 1.

The positive integers less than 10 which are relatively prime to 10 are:

1, 3, 7, 9

therefore the sum of positive integers less than 10 which are relatively prime is 20.

What is the sum of all positive integers less than 1,000,000 which are relatively prime to 1,000,000?