Step Into Labs

Step Into Rust · Module exam · Foundations

Exam: The Number Profiler

Everything interesting about one number, from its bits to its digital root.

Part of Step Into Rust. The full module exam, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.

Give the profiler any number up to the largest u64, and it tells you everything interesting about it: its bits, its digits, its digital root and whether it is a power of two. The largest input has 20 digits, so there is nowhere to hide from overflow.

In this module exam

Missions

  1. Profile any u64