Course of Raku / Addendum 🆕 / Working with data

Numbers and mathematics

These challenges combine the numeric tools from across the course — integer operations, ranges, the reduction metaoperator, and a few number methods — into small problems that need more than a single expression to solve.

Exercises

This section contains 6 exercises. Examine all the topics of this section before doing the coding practice.

  1. Perfect numbers
  2. Prime factorisation
  3. Greatest common divisor and least common multiple
  4. Digital root
  5. Collatz steps
  6. One number, three bases

Course navigation

Working with data   |   Perfect numbers