Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 23rd, 2018
84
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Haskell
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
modPow x y n
|
y
==
0
=
1
|
y `
mod
`
2
==
0
=
let
a
=
(
modPow x
(
y `
div
`
2
)
n
)
in
(
a
*
a
)
`
mod
` n
|
otherwise
=
(
(
x `
mod
` n
)
*
(
modPow x
(
y
-
1
)
n
)
)
`
mod
` n
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 16 min ago | 0.38 KB
Decomposition Methods
Java | 18 min ago | 4.70 KB
Div HTML estructura del titulo - Fashion Slid...
HTML | 23 min ago | 0.05 KB
BSRP
SQL | 30 min ago | 109.43 KB
ee
C++ | 44 min ago | 3.26 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 45 min ago | 0.39 KB
ex10 kispython
Python | 51 min ago | 2.08 KB
CC mekanism Induction Battery Monitoring V1
Lua | 1 hour ago | 5.33 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!