def premier(n): for k in range(2,n): if diviseur(k,n) == True: return False return True # si aucun diviseur n'a été trouvé