number theory scripts