Given a number, return the number of closed 'circles' in the base 10 numerical representation.

Note: the number 4 has no circles

Example:

    8819 -> 5

Solution Stats

485 Solutions

243 Solvers

Last Solution submitted on Jan 05, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers243

Suggested Problems

More from this Author56

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!