Skip to content
Snippets Groups Projects
Commit 0cc59757 authored by Dimitri Tayo Fongang Wembe's avatar Dimitri Tayo Fongang Wembe
Browse files

solving error with is_emirp for nb < 10

parent 7508ee24
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ def is_emirp(n):
# TODO
nb = n
if nb < 10:
return is_prime(nb)
return False
else:
nb_str = int2str(nb, 10)
list_nb_spiegelbild = list(nb_str)[::-1]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment