I have this problem: Find total numbers in the set contains integers from 0 to 799 that are relatively prime to 800.
My solution is: 800 - (numbers that are divisible by 2 or 5) = 800 - (400+160-80) = 320.
I have this problem: Find total numbers in the set contains integers from 0 to 799 that are relatively prime to 800.
My solution is: 800 - (numbers that are divisible by 2 or 5) = 800 - (400+160-80) = 320.
Good job, the approach and the answer is correct.
Short python code to verify the answer: