6- est_premier


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:


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


@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.