Find the sum of all positive integers less than 1000 ending in 3 or 4 or 6 or 9.
The sum is 8,514,402.