DennisMitchell / jellylanguage

Jelly is a recreational programming language inspired by J.
MIT License
860 stars 47 forks source link

More number-theoretic functions #22

Closed lynn closed 7 years ago

lynn commented 7 years ago
Æc (Carmichael function)          https://en.wikipedia.org/wiki/Carmichael_function
Æd (divisor count)                ÆDL
Æs (divisor sum)                  ÆDS
Æv (# of distinct prime factors)  ÆFL     (sometimes called “ν (nu) function”)
ÆḌ (proper divisors)              ÆDṖ
Æḍ (proper divisor count)         ÆDṖL
Æṣ (proper divisor sum)           ÆDṖS
æi (inverse of x, modulo y; 0 if none exists)   

These are probably all “common” enough to deserve their own two-byters; it’s not like we’re running out of room for those.