# quick riddle for the "developers" :)

Check out this "problem": solved by pre-school kids in 5-10 minutes, and developers (like me) usually take average 1 hour, and higher-graded people ...
Well, check it out for yourself: what should be the solution of the last line:

8809=6
7111=0
2172=0
6666=4
1111=0
3213=0
7662=2
9313=1
0000=4
2222=0
3333=0
5555=0
8193=3
8096=5
7777=0
9999=4
7756=1
6855=3
9881=5
5531=0
2581=?
LVL 143
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
2
Commented:
2
Commented:
What would
4444=?
Commented:
4444=4
Commented:
The number behind the "=" gives the amount of enclosed space in the numbers before.
1,2,3,5,7 don't enclose any space
4,6,9 have one enclosure
8 has two enclosures
Therefore: 2581=2 (the two enclosures of the eight), 4444=4 (four times the one enclosure of the four).
These can be easily counted but there is no real mathematics envolved, so it can be solved by pre-school kids very easily.

Experts Exchange Solution brought to you by