>>Factom
Tiens un petit script
#!/usr/bin/env python
#-*- coding: utf-8 -*-
import multiprocessing as mp
def test(n):
if str(n**2016)[:4] == "2016":
print(n)
n_min = 10000
n_max = 1000000
with mp.Pool() as p:
p.map(test, range(n_min, n_max+1))
Cimer Girnasov pour l'explication, je connaissais pas cette lib et je savais pas pour le tas
Tiens un petit script

#!/usr/bin/env python
#-*- coding: utf-8 -*-
import multiprocessing as mp
def test(n):
if str(n**2016)[:4] == "2016":
print(n)
n_min = 10000
n_max = 1000000
with mp.Pool() as p:
p.map(test, range(n_min, n_max+1))
