Changes in new versions / Ruby 2.5

Integer#pow(exp, mod)

This example is in the full version, available in the app stores: