Atom - Æv - Count Distinct Prime Factors

Characters: Æ , v

Tags: arithmetic , math , number , vectorize , prime

Arity: monadic

This atom is monadic, which means it takes one argument.


Return the number of distinct prime factors of z.


This atom should work roughly the same way as or very similarly in concept to the following code snippets (some edge case exceptions may exist):