Factor() function not defined error

There is factor function described in julia docs. However if try it in REPL I get

>factor(100)
ERROR: UndefVarError: factor not defined

If I search docs from REPL i get

help?> factor
search: factorize factorial Factorization

Couldn't find factor
Perhaps you meant Vector, factorial, factorize, lfact, filter, floor, for, acos, acot, cor, macro or bkfact
  No documentation found.

  Binding factor does not exist.

My version is 0.6.0. What is wrong?

You are looking at docs for an old Julia version. Check out the Primes.jl package IIRC.

2 Likes