HighestPrimePotence: The highest prime potence of a whole number.

View source: R/HighestPrimePotence.R

HighestPrimePotenceR Documentation

The highest prime potence of a whole number.

Description

Compute the highest prime potence, i.e. the maximal $p^a$ in the prime factor decomposition of a non-zero number.

Usage

HighestPrimePotence(x)

Arguments

x

A non-zero whole number where we want to compute the highest prime factor from.

Details

Iteratively divide x by smaller increasing numbers until it has absolute value 1.

Value

Maximum prime potence.

Author(s)

Julian Maerte

Examples

HighestPrimePotence(200) # = 25

Mthrun/TSAT documentation built on Feb. 5, 2024, 11:15 p.m.