Mod 47 without recursion

+2
PY
py
OUTPUT