Sphenic Number Calculator

Check whether an integer is the product of exactly three distinct primes, each appearing once.

Math and PercentUpdated 2026-11-182 min read
Sphenic Number Calculator
A whole number from 2 to 1,000,000.
Prime factorization
...
Distinct prime factors...
Classification...

What it does

A sphenic number is a positive integer that is the product of three distinct primes. Because each prime appears exactly once, every sphenic number is squarefree. The sequence begins 30, 42, 66, 70, 78 and 102.

The name comes from a Greek word meaning wedge shaped, referring to the arrangement of three prime factors. The smallest example, 30, is the product of two, three and five.

The test is straightforward: factor the number, count the distinct primes and check that no exponent exceeds one. A number like 12 is excluded even though it has two distinct primes, because one of them is repeated.

This page performs the factorization and reports both the distinct prime count and the full factorization. That makes it easy to see whether the three distinct prime condition holds.

The input limit is one million, which keeps factoring fast and the results exact.

How to use

  1. Enter a whole number n from 2 to 1,000,000.
  2. Read the classification in the main result box.
  3. Check the number of distinct prime factors beside it.
  4. Use the factorization to see whether any prime repeats.
  5. The default n = 30 reproduces the worked example.
  6. Try n = 42 to confirm another sphenic number.

Formula

n is sphenic when n = p x q x r for three distinct primes p, q and r
n
The integer being tested.
p, q, r
Three distinct prime factors.

All exponents must be one, so a sphenic number has exactly eight divisors. The condition is stricter than having three prime factors with multiplicity, because repeated primes are not allowed.

Worked example

Example: n = 30

The page opens with n = 30.

  1. Factor 30 as 2 x 3 x 5.
  2. Count distinct primes: there are three.
  3. Check exponents: each prime appears once.
  4. The tool reports factorization 2 x 3 x 5, distinct primes 3, and Sphenic.
  5. For 42 the factorization is 2 x 3 x 7, also sphenic.
  6. For 12 the factorization 2^2 x 3 has a repeated prime, so it fails.

Reference table

Sphenic numbers and nearby cases
nFactorizationDistinct primesSphenic
122^2 x 32No
302 x 3 x 53Yes
422 x 3 x 73Yes
602^2 x 3 x 53No
1053 x 5 x 73Yes

Limits

  • Inputs above 1,000,000 are rejected to keep factoring quick.
  • Only positive integers greater than one are accepted.
  • The tool gives a verdict, not a list of sphenic numbers.
  • Repeated prime factors cause failure.

Common mistakes

  • Counting prime factors with multiplicity instead of distinct primes.
  • Allowing a squared prime factor.
  • Confusing this with semiprimes, which need two primes.
  • Requiring the primes to be consecutive, which is not needed.
  • Assuming every number with eight divisors is sphenic.

Try it yourself

Quick checks. Answers sit tucked under each question.

Is 30 sphenic?

Yes, because 30 = 2 x 3 x 5 with three distinct primes.

Is 60 sphenic?

No. It has three distinct primes but 2 appears twice.

Is 105 sphenic?

Yes, because 105 = 3 x 5 x 7.

Questions

Where does the name come from?

It comes from a Greek word meaning wedge shaped.

How many divisors does a sphenic number have?

Eight, since three exponents of one give two cubed choices.

Is every sphenic number squarefree?

Yes, by definition.

What is the smallest sphenic number?

Thirty.

Are results exact?

Yes, factorization uses integers only.

What input range is accepted?

Whole numbers from 2 through 1,000,000.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.