what is the total number of positive integers that are less than 500 and that have no positive factor in common with 500 other than 1 ?
since 500 = 2 ^ 2 * 5 ^ 3 then a number can not have 2 and / or 5 as a factor . the odd numbers do not have 2 as a factor and there are 250 odd numbers from 1 to 500 . we then need to eliminate the 50 numbers that end with 5 , that is 5 , 15 , 25 , . . . , 495 . there are a total of 250 - 50 = 200 such numbers between 1 and 500 . the answer is c .
subtract(subtract(500, const_1), subtract(add(add(divide(subtract(subtract(500, const_2), const_2), const_2), const_1), add(divide(subtract(subtract(500, divide(500, const_100)), divide(500, const_100)), divide(500, const_100)), const_1)), add(divide(subtract(subtract(500, const_10), const_10), const_10), 1)))