rad
The radical of an integer.
Syntax
-
rad(n)-
nis a positive integer
-
Description
If n is a positive integer, then rad(n) is the radical of n, defined as the product of all distinct prime factors of n. (The product of all prime factors, taken with multiplicity, would be n itself.)
Hence, rad(n) is the same as
∏(unique(PrimeFactors(n)))
Examples
rad(1024)
2
rad(19871226)
6623742