2

$12 = 0$
$1234 = 1$
$123456 = 2$
$12345678 = 4$

$369 = 2$
$248 = 3$

$2 = 0$
$3 = 0$
$5 = 0$
$7 = 0$
$11 = 0$
$13 = 0$

What does:
$123456789 = ?$
Why?

Hopefully isn't too hard, please ask if you need any test cases.

GentlePurpleRain
  • 25,965
  • 6
  • 93
  • 155
qwertylpc
  • 1,519
  • 10
  • 27

1 Answers1

3

The answer is:

5

because

You're counting the number of holes in the numbers.

JLee
  • 18,202
  • 2
  • 55
  • 172
Gummy bears
  • 146
  • 3