Unstub

Quests 4 chapters · 24 problems

Maths Puzzles
Sums, primes and digits, as functions you can test.

Twenty-four maths puzzles, each a function of the number that fixes it: loops and sums, primes and divisors, digits, and counting. Small steps of maths and code, checked on inputs you can work out by hand.

Try Loops and sums, the first chapter, without an account. Create a free account to open every problem and keep your stars.

Try one first · Write24 problems

Sum of Multiples of 3 or 5
Something new.

Return the sum of the whole numbers below limit that 3 or 5 divides.

Start writing Stuck? Recall · Fill

Write → step down → come backOr join for a few a day.

What's inside

4 chapters

24 problems to write

  • Numbers
  • Dynamic programming
  • Grids

How do you want to study this?

Three ways

Choose a plan and a pace. Each day brings a few problems from it, on your dashboard and in the extension. You can change it whenever you like.

  • Steady pathA little every daySomething new to write each day, and what needed help back a few days on.
  • Deep diveOne problem at a timeOne problem each day until you write it on your own; then a new one, of the same kind first.
  • Interview countdownEverything by a dateTry every problem by the day you choose, and write again what needed help.

Create a free account to choose one, or sign in.

The path

4 chapters · 24 problems

Loops and sums

Add things up, one number or one term at a time.
0 / 5
  1. Sum of Multiples of 3 or 5 Up next
  2. Sum of Even Fibonacci Numbers New
  3. Square of the Sum Minus the Sum of Squares New
  4. First Fibonacci Number with n Digits New
  5. Diagonals of a Number Spiral New

Primes and divisors

Trial division, the sieve, and divisors in pairs.
0 / 7

Digits

Numbers too big to hold, written out a digit at a time.
0 / 5

Counting and searching

Search with a bound, and count without listing.
0 / 7