primes: Prime Factorization

Description Usage Arguments Details Value Examples

Description

Computes the prime factorization of a composite number.

Usage

1

Arguments

x

length-1 numeric.

Details

As a side effect, tests for primality using a naive approach.

Value

A matrix of prime factors in the first column and powers in the second.

Examples

1
2
(x <- 8*9*25*7*11)
prime.factorization(x)

graywh/r-gmisc documentation built on June 25, 2018, 4:51 a.m.