Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Nov 23rd, 2017
73
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.15 KB
| None
|
0
0
raw
download
clone
embed
print
report
def Fermat_primality_test (n,a):
for i in range(2,a):
if (i**(n-1))%n!=1:
return 0
return 1
print(Fermat_primality_test(int(input()),int(input())))
Add Comment
Please,
Sign In
to add comment
Public Pastes
pastebin.ai - #1 pastebin alternative
PHP | 28 min ago | 0.81 KB
computercraft test script
Lua | 51 min ago | 2.14 KB
rps
JSON | 57 min ago | 4.14 KB
Untitled
Go | 1 hour ago | 0.52 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 1 hour ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
2024-04-26_stats.json
JSON | 1 hour ago | 4.16 KB
2024-04-26_stats.json
JSON | 1 hour ago | 4.15 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!