MathStudio  Blog  Share  Manual  Forums  Support  Sign In 
      
      
 
       Download Manual

Space Space Space
NUMBER

ALGEBRA

BASIC

CALCULUS

CAS

DATA

ELEMENTARY

GRAPHING

MANUAL

MATRIX

PLOT

SCRIPTING

SPECIAL

SPECIAL POLYNOMIALS

STATISTICAL

TRIGONOMETRIC

VECTOR CALCULUS
  nPrimes(n)
n
Positive integer.


Description
Finds all prime factors and their exponent of a given number.

The result is returned as a nested list. The first number is the prime factor and the second number is the exponent.


Examples  
1 * 2^1 * 5^1

1 * 31^1

1 * 2^3 * 5^2

1 * 3^2 * 11^1 * 101^1


References
http://reference.wolfram.com/mathematica/ref/FactorInteger.h...

Related Functions
nFactors, Prime, IsPrime





Copyright © 2012 Pomegranate Software.  All rights reserved.