Play n Tools

Free tools & games for everyone

Free · No sign-up · No accounts

Number explorer

Explore whole numbers: primes and prime factors, GCD and LCM with Euclid's steps, long division with repeating decimals, clock maths and sequences.

How to use

  1. Number facts: type any whole number up to 9,007,199,254,740,991 to see if it is prime, its prime factors, divisors, and what kind of number it is.
  2. GCD & LCM: type two or more numbers. Euclid's steps show how the greatest common divisor is found.
  3. Long division: see a division set out step by step, with the remainder and the decimal answer, including repeating digits.
  4. Primes: list and count the primes in a range, and find the n-th prime.
  5. Clock (mod): remainders shown on a clock face, powers and inverses in modular arithmetic.
  6. Sequences: Fibonacci, primes, squares and more, or the famous 3n + 1 path.

Keyboard and touch

Enter in a boxWork it out
TabMove between the tool buttons and boxes

Tips

  • To simplify a fraction, divide top and bottom by their GCD; to add fractions, use the LCM of the bottoms as the common denominator.
  • A number is divisible by 3 (or 9) when its digit sum is.
  • A fraction gives a repeating decimal unless its bottom number (in lowest terms) has only 2s and 5s as factors.
  • Modular arithmetic is clock arithmetic: 15 o'clock is 3 o'clock because 15 mod 12 = 3.
  • Perfect numbers equal the sum of their other divisors: 6 = 1 + 2 + 3 and 28 = 1 + 2 + 4 + 7 + 14.
  • Nobody has proved that every Collatz path reaches 1, though every number ever tried does.

About this tool

Prime tests use the Miller-Rabin test with the first twelve primes as witnesses, which is proven to be exact for every number this tool accepts. Factors are found by trial division and then Pollard's rho method, so even 16-digit numbers factor in a moment. Primes in a range use a segmented sieve of Eratosthenes. Euclid's algorithm is run in its extended form, which also gives the Bezout numbers x and y.

Long division finds repeating decimals by remembering each remainder: once a remainder comes back, the digits repeat from there. Whole numbers up to 2⁵³ − 1 are exact in a browser; larger sequence terms are marked as rounded. Everything runs in your browser.

See you tomorrow!

A fresh daily puzzle every morning, and new tools added every month.

Browse every product