Code without Miller-Rabin implementation:
Estimated time to calculate perfect number with p = 31: > 10 min.
Code With Miller-Rabin implementation:
Estimated time to calculate perfect number with p = 31: ~ 1 sec.
Implementation gotten from here.
Importance of algorithms
Publicado por
Jere
on sábado, 2 de marzo de 2013
Etiquetas:
Python,
Source code
0 comentarios:
Publicar un comentario