# Depressed Numbers [duplicate]

$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.

## marked as duplicate by mmking, Bailey M, JLee, Engineer Toast, pacoverflowJul 16 '15 at 16:09

• Wow this was way too easy. Really should amp up the difficulty level – qwertylpc Jul 16 '15 at 16:05