Not that anyone cares for FizzBuzz but I'll just note that n**4%15 is more efficiently written using the 3 argument pow function in python, eg pow(n, 4, 15).
>>> timeit("(1<<100000000)**4%15", number=1)
1.5620321459136903
>>> timeit("pow(1<<100000000, 4, 15)", number=1)
0.05834826407954097
>>>
If n gets large then n**4 is very large so the % 15 has to deal with a big number. pow runs the modulo operation at the same time as the power operation so the intermediates never get bigger than 15.