what is the number of integers from 1 to 1000 ( inclusive ) that are divisible by neither 11 nor by 34 ?
"normally , i would use the method used by bunuel . it ' s the most accurate . but if you are looking for a speedy solution , you can use another method which will sometimes give you an estimate . looking at the options ( most of them are spread out ) , i wont mind trying it . ( mind you , the method is accurate here since the numbers start from 1 . ) in 1000 consecutive numbers , number of multiples of 11 = 1000 / 11 = 90 ( ignore decimals ) in 1000 consecutive numbers , number of multiples of 35 = 1000 / 35 = 28 number of multiples of 11 * 35 i . e . 385 = 1000 / 385 = 2 number of integers from 1 to 1000 that are divisible by neither 11 nor by 35 = 1000 - ( 90 + 28 - 2 ) { using the concept of sets here ) = 890 think : why did i say the method is approximate in some cases ? think what happens if the given range is 11 to 1010 both inclusive ( again 1000 numbers ) what is the number of multiples in this case ? b"
subtract(1000, subtract(add(divide(1000, 11), divide(1000, 34)), divide(1000, multiply(11, 34))))