Learn R Programming

schoolmath (version 0.4)

prime.factor: giving prime-factors of a number

Description

This function calculates the prime-factors of a number

Usage

prime.factor(n)

Arguments

n

the number to be checked

Examples

Run this code
# NOT RUN {
prime.factor(21)
prime.factor(100)
# }

Run the code above in your browser using DataLab