MathDB
divisible by 8 or at least one of its digits is 8 (HOMC 2011 Q1)

Source:

July 25, 2019
number theorydivisible

Problem Statement

An integer is called "octal" if it is divisible by 88 or if at least one of its digits is 88. How many integers between 11 and 100100 are octal?
(A): 2222, (B): 2424, (C): 2727, (D): 3030, (E): 3333