Learn R Programming

schoolmath (version 0.4.2)

prime.factor: This function calculates the prime-factors of a number

Description

This function calculates the prime-factors of a number

Usage

prime.factor(n)

Value

a vector with the prime factors

Arguments

n

the number to be checked #'

Examples

Run this code
prime.factor(21)
prime.factor(100)

Run the code above in your browser using DataLab