Problem: how many positive integers q between 200 and 300 ( both inclusive ) are not divisible by 2 , 3 or 5 ?
Rationale: 1 ) i figured there are 101 integers ( 300 - 200 + 1 = 101 ) . since the set begins with an even and ends with an even , there are 51 evens . 2 ) question says integers are not divisible by 2 , leaving all of the odds ( 101 - 51 = 50 integers ) . 3 ) question says integers are not divisible by 5 , removing all the integers ending in 5 ( already took out those ending in 0 ) . take out 10 integers ( 2 ? 5 , ? = 0 to 9 ) , leaving us with 40 integers . 4 ) now the painstaking part . we have to remove the remaining numbers that are multiples of 3 . those are 201 , 207 , 213 , 219 , 231 , 237 , 243 , 249 , 261 , 267 , 273 , 279 , 291 , and 297 . . . a total of 14 numbers . 26 numbers left ! 6 ) answer choice e .
annotated_formula: subtract(subtract(subtract(add(subtract(300, 200), const_1), add(subtract(divide(300, 2), divide(200, 2)), const_1)), floor(add(subtract(add(subtract(divide(300, 3), divide(200, 3)), const_1), add(add(const_10, 5), 2)), const_1))), subtract(add(subtract(divide(300, 5), divide(200, 5)), const_1), add(const_10, 5)))