✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Qu'affiche ce code ?
def est_premier(n):
for i in range(2,n):
if n%i==0:
return False
return True
def premiers_jumeaux(p,q):
if est_premier(p) and est_premier(q) and (p-q==2 or p-q==-2):
return True
return False
print(premiers_jumeaux(3,5))
print(premiers_jumeaux(7,9))