Solution:(1 to 1000) numbers divisible by 2 = 1000/2 = 500(1 to 1000) numbers divisible by 3 = 1000/3 = 333
(1 to 1000) numbers divisible by 5 = 1000/5 = 200
(1 to 1000) numbers divisible by 6 = 1000/6 = 166
(1 to 1000) numbers divisible by 15 = 1000/15 = 66
(1 to 1000) numbers divisible by 10 = 1000/10 = 100
(1 to 1000) numbers divisible by 30 = 1000/30 = 33
Numbers from (1 to 1000) which are not divisible by any of the digits
= 100 - [(500 + 333 + 200) - (166 + 66 + 100) + 33]
= 1000 - [(1033) - 332 + 33] = 1000 - 734 = 266 .