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.
24 problems to write
- Numbers
- Dynamic programming
- Grids
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.
Create a free account to choose one, or sign in.
Loops and sums
Add things up, one number or one term at a time.
0 / 5
Primes and divisors
Trial division, the sieve, and divisors in pairs.
0 / 7
-
Largest Prime Factor Free account
-
Smallest Number Divisible by 1 to n Free account
-
The nth Prime Free account
-
Sum of Primes Below n Free account
-
First Triangle Number with Many Divisors Free account
-
Sum of Amicable Numbers Free account
-
Circular Primes Below n Free account
Digits
Numbers too big to hold, written out a digit at a time.
0 / 5
-
Largest Product of Adjacent Digits Free account
-
Digit Sum of a Power of Two Free account
-
Digit Sum of a Factorial Free account
-
Numbers Equal to Their Digit Powers Free account
-
Palindromes in Two Bases Free account
Counting and searching
Search with a bound, and count without listing.
0 / 7
-
Pythagorean Triplet with a Given Sum Free account
-
Longest Collatz Chain Free account
-
Routes Through a Grid Free account
-
Best Path Down a Triangle Free account
-
Scoring Sorted Names Free account
-
The nth Permutation in Dictionary Order Free account
-
Ways to Make an Amount from Coins Free account