Integer Arithmetic

Four tools for working with integers and bitwise operations. Prime number test checks primality, Prime factors breaks an integer down, GCD and LCM calculates two values and Bitwise calculator applies AND, OR, XOR and bit shifts. These tools help with maths, programming and electronics. Free and no sign-up.

Start with the question you are asking. To know whether a number is prime, use Prime number test. To see its breakdown, choose Prime factors. To compare two integers, GCD and LCM gives common divisors and the common multiple. Bitwise calculator handles bit-level operations.

How to use

  1. State the maths question first: primality, factorisation, common divisors or bit-level operations. Prime number test, Prime factors, GCD and LCM and Bitwise calculator cover those needs.
  2. To know whether an integer is prime, start with Prime number test, then use Prime factors if you need to see its breakdown.
  3. To compare two integers, open GCD and LCM, enter both values and check the greatest common divisor and least common multiple.
  4. For masks or shifts, use Bitwise calculator and check the result against the expected bit width.

Frequently asked questions

What is the Bitwise calculator for?

It applies bit-level operations such as AND, OR, XOR and shifts. It suits programming exercises, masks and understanding binary representations. Check the output against your expected bit width.

Can I factor a large integer?

The Prime factors tool breaks an integer down into prime factors. Difficulty can grow with the size of the number. Check the result, and use another tool if you only need primality.

When should I use Prime factors after Prime number test?

Prime number test answers yes or no. If the number is not prime, Prime factors shows its breakdown into prime factors. This helps explain the result or continue an exercise. Then check the factors you receive.

What are GCD and LCM useful for in an exercise?

GCD and LCM calculates the greatest common divisor and least common multiple of two integers. These values help simplify, compare or solve divisibility problems. Enter both integers and review the results before reusing them.

Tools in the same category