Try Notedeck free · More Computer Science demos
← Notedeck 计算机 · Modular exponentiation · square-and-multiply Try in Notedeck

Modular exponentiation · square-and-multiply — interactive Computer Science demo

Compute base^exp mod m from the binary expansion of exp — only O(log exp) multiplications

Run this interactive Computer Science demo live below, or download it as a single self-contained HTML file that works offline in any browser or LMS — one of 1,900+ free interactive teaching demos on Notedeck. With Notedeck you upload your own materials and turn them into interactive courseware, question papers with answer keys, and AI-taught lessons.