| 1 | initial version |
Alternatively one can use omega (or bigomega to count prime factors with multiplicity) functions from GP:
sage: gp.omega(234)
3
sage: gp.bigomega(234)
4
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.