23/02/2026 20:31 <sans nom> *
1 def saisir():
2 global n
3 n=int(input("donner n:"))
4 while not(40000<n<100000):
5 n=int(input("donner n:"))
6 def premier(x):
7 i=2
8 test=True
9 while test and i<=x//2:
10 if(x %i==0):
11 test=False
12 else:
13 i=i+1
14 return test
15
16 def super(x):
17 while premier(x) and x!=0:
18 x=x//10
19 return x==0
20 def afficher():
21 f=open("super_p.txt","w")
22 for i in range(2,n+1):
23 if( super(i)):
24 print(i, "est superpremier")
25 [Link](str(i)+ " est superpremier \n")
26 elif(premier(i)):
27 print(i)
28 [Link](str(i)+"\n")
29 [Link]()
30
31
32
33
34
35
36
37 #pp
38 saisir()
39 afficher()
[Link] 1/1