JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://unpkg.com/big-integer@1.6.16"></script>
JavaScript
const result = bigInt(7).modPow(16971, 25777);
console.log(result.value); // 857
<script src="https://unpkg.com/big-integer@1.6.16"></script>
const result = bigInt(7).modPow(16971, 25777);
console.log(result.value); // 857