import math
def prime(x):
if x <= 1:
return False
for i in range(2, int(math.sqrt(x)) + 1):
if x % i == 0:
return False
return True
def run():
a, b = map(int, input().split())
c = 0
for n in range(a, b + 1):
if prime(n - 1) and prime(n + 1):
c += 1
print(c)
run()
Prime// Flipkart
Deloitte
On campus placement
All MCQs are done ✅
DM @mrtrueliving_ix👍
On campus placement
All MCQs are done ✅
DM @mrtrueliving_ix
Any placement help available with remote access
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
COGNIZANT EXAM HELP GROUP
Capgemini Test accomplished 📣 Any placement help available DM @mrtrueliving_ix 👍 @mrtrueliving_ix💯
Capgemini exceller
💯 Genuine & Remote access📣 💯😁
Proof
https://t.me/code_alphix/2346
Successfully cleared round 1
💯 Genuine & Remote access
Proof
https://t.me/code_alphix/2346
Please open Telegram to view this post
VIEW IN TELEGRAM
🏆1
All placement help available
DM @mrtrueliving_ix👍
@mrtrueliving_ix👍
@mrtrueliving_ix👍
Remote access || pics sharing
DM @mrtrueliving_ix
@mrtrueliving_ix
@mrtrueliving_ix
💯 Test Clearance 😇
Remote access || pics sharing
Please open Telegram to view this post
VIEW IN TELEGRAM