4 digits- will take less than a second. For 5 digits+ I recommend turbowarp (I could feel my device overheating on Scratch. Precision breaks at 1, 17; 2, 8; 3, 6; 4, 4; 5, 3; 6, 3; 7, 2; 8, 2; 9+, 1
Twin powers! (Two consecutive last n digits) (the roots are the twin powers, raised to that power)