logo

Crowdly

Browser

Add to Chrome

Qu'affiche ce code ? def est_premier(n): for i in range(2,n): if n...

✅ 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))

0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.ensea.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome