Make the fourth powers be the outermost loop (slightly faster)