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 liste_div_premiers(n):

Res=[]

for d in range(2,n):

if est_premier(d) and n%d==0:

Res.append(d)

return Res

L=liste_div_premiers(30)

print(L)

0%
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