factor

Type: External

Group: general

Syntax

answer=factor(values)

Description

Calculates all the prime factors of value.

Notes

This function will take a long time when factorising large values

Examples

factor(10)=[2,5]  
factor(30)=[2,3,5]