Smooth Number Checker

All primes ≤ B

CalculatorsFreeNo Signup
4.2(751 reviews)
All Tools

Loading tool...

About Smooth Number Checker

A smooth number checker testing if all prime factors of n are ≤ B. Shows the smoothness bound, largest prime factor, factorization, and explains use in factoring (quadratic sieve, number field sieve). Client-side.

Smooth Number Checker Features

  • B-smooth check
  • Largest factor
  • Factorization
  • Smoothness
  • Crypto use
B-smooth number: all prime factors ≤ B. 720 = 2⁴·3²·5 is 5-smooth. 7-smooth numbers: 1,2,3,4,5,6,7,8,9,10,12,14,15,16,18,20,21... Critical in modern factoring: quadratic sieve and GNFS collect smooth relations. The probability a random n-digit number is n^(1/u)-smooth is u^(-u).

How to Use

Enter n and B:

  • B-smooth?: All factors ≤ B?
  • Largest factor: The smoothness bound
  • Factorization: Complete decomposition

Factoring Algorithms

The quadratic sieve and GNFS factor large numbers by finding B-smooth values of polynomials. Choosing optimal B is crucial: too small = few smooth values, too large = too many primes in the factor base. Optimal B ≈ exp(√(ln n · ln ln n)).

Counting Smooth Numbers

Ψ(x,y) = count of y-smooth numbers ≤ x. Dickman's function: Ψ(x,x^(1/u)) ≈ x·ρ(u). ρ(1)=1, ρ(u) decreases rapidly: ρ(2)≈0.31, ρ(3)≈0.049, ρ(5)≈0.00035.

Step-by-Step Instructions

  1. 1Enter number.
  2. 2Set smoothness B.
  3. 3Check smooth.
  4. 4View factors.
  5. 5Compare bounds.

Smooth Number Checker — Frequently Asked Questions

Why are smooth numbers important for cryptography?+

RSA security relies on factoring being hard. Modern factoring algorithms (GNFS) work by finding smooth numbers. The hardness of factoring n depends on how dense smooth numbers are near √n. This determines key sizes needed for security.

What are 'regular' smooth numbers?+

5-smooth = Hamming numbers (form 2^a·3^b·5^c). 7-smooth = humble numbers. These have applications in music theory (5-limit tuning), computational number theory, and algorithm analysis. Ramanujan studied highly composite numbers, which are often smooth.

What is Dickman's function?+

ρ(u) gives the probability a large random N is N^(1/u)-smooth. ρ(1)=1 (trivial), ρ(2)≈0.31 (31% of numbers ≤ N are √N-smooth), ρ(10)≈2.77×10^(-11). This governs the runtime of factoring algorithms.

Share this tool: