Previous Page Next Page Contents

numlib::primedivisors -- prime factors of an integer

Introduction

numlib::primedivisors(n) returns a list containing the different prime divisors of the integer n.

Call(s)

numlib::primedivisors(n)

Parameters

n - an integer

Returns

numlib::primedivisors(n) returns a list of nonnegative integers.

Related Functions

ifactor, isprime, numlib::divisors, numlib::numdivisors, numlib::numprimedivisors, numlib::proveprime

Details

Example 1

We compute the list of prime divisors of the number 6746328388800 (one of the highly composite numbers studied by S. Ramanujan in 1915):

>> numlib::primedivisors(6746328388800)
                     [2, 3, 5, 7, 11, 13, 17, 19, 23]

Background

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000