Description Usage Arguments Details Value Examples
View source: R/is_primepower.R
Checks whether given number is a prime power or not. Note that for a prime number, it would return NULL.
1 |
p |
integer |
Returns a and b where p=a^b, otherwise NULL. Uses primeFactors() function of numbers package.
a and b where p=a^b and a is a prime number. Otherwise NULL
1 2 3 4 5 6 | is.primepower(2048)
#2 11
is.primepower(7)
#NULL
is.primepower(100)
#NULL
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.