6- est_premier


#1

Bonjour j'ai besoin d'aide avec ce code, pourquoi est ce qu'il m'affiche ce message d'erreur? Merci d'avance :slight_smile:

Hi, I need help with this code, I don't understand the error message! Thank you in advance :slight_smile:


#2

This exercise is bugged. Your code is fine. You can turn the code into a comment (or store it somewhere) and put this in the editor:

def est_premier(n):
    return est_premier

it will make you pass the exercise


#3

@stetim94 's workaround will allow you to pass. In fact, if you have a correct solution, you can leave it intact and not commented out. Just add the workaround at the end.