Rough Number Checker

Check whether every prime factor of n is at least an inclusive bound B, treating one as B-rough; trial division is limited to n≤10¹².

Description

A B-rough number has no prime factor below B.

A B-rough number has no prime factor below B. Here the lower bound is inclusive, permitting a factor equal to B.1

The tool returns isRough. The indexing and output conventions below determine how to read these values.

When to use Rough Number Checker

Use this for the following task: Check whether every prime factor of n is at least an inclusive bound B, treating one as B-rough; trial division is limited to n≤10¹². Use the input and output conventions below to reproduce the intended mathematical quantity.

How to use Rough Number Checker and understand its results

  1. Choose the required indexes, integers or sequence entries. Preserve decimal-string encodings where the field table specifies strings.
  2. Enter n, bound according to the field table, then run the tool.
  3. Read isRough. A true flag means the candidate meets the stated property; false means it does not.
  4. If the flag is false, review the candidate and definition. A well-formed nonmember is different from a rejected input.
Input fieldMeaningValue type and boundsRequirement
nPositive integer (trial-division resource limit 10^12)integer; minimum 1; maximum 1000000000000Required
boundInclusive lower prime-factor boundinteger; minimum 1; maximum 9007199254740991Required

Factor positive n by trial division and test each distinct prime against the lower bound. One passes because it has no prime factors.

rough(n,B) ⇔ every prime factor p of n satisfies p≥B

The symbols and boundary conditions refer to the supplied fields and the implementation described above.

Output fieldMeaningValue type
isRoughWhether every prime factor is at least the boundboolean
json
{
  "input": {
    "n": 77,
    "bound": 7
  },
  "output": {
    "isRough": true
  }
}

Limitations and assumptions

The input n is capped at 10¹². This convention allows equality; it does not return the factors or require that B itself be prime.

Use the declared integer bounds and string formats. Large exact outputs remain decimal strings; numerical approximations use ordinary floating-point arithmetic. A rejected input is different from a valid zero count or false membership flag.

Alternative or Complementary methods

Choose Smooth Number Checker when you need its operation: Check whether every prime factor of n is at most an inclusive bound B, treating one as B-smooth; trial division is limited to n≤10¹². Choose Distinct Prime Factor Count for the complementary operation: Return ω(n), the number of distinct prime factors, with ω(1)=0 and trial division limited to n≤10¹².

Background reference: OEIS A007775.

References

  1. OEIS A007775 — OEIS Foundation

Similar or alternative tools

  • Smooth Number Checker

    Check whether every prime factor of n is at most an inclusive bound B, treating one as B-smooth; trial division is limited to n≤10¹².

  • Distinct Prime Factor Count

    Return ω(n), the number of distinct prime factors, with ω(1)=0 and trial division limited to n≤10¹².

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies