public class EulerPhi
extends java.lang.Object
| Constructor | Description |
|---|---|
EulerPhi() |
Default constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.math.BigInteger |
at(int n) |
Compute phi(n).
|
java.math.BigInteger |
at(java.math.BigInteger n) |
Compute phi(n).
|
static void |
main(java.lang.String[] args) |
Test program.
|
public java.math.BigInteger at(int n)
n - The positive argument of the function.public java.math.BigInteger at(java.math.BigInteger n)
n - The positive argument of the function.public static void main(java.lang.String[] args)
throws java.lang.ArithmeticException
java.lang.ArithmeticException