ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1352
. Mersenne Primes
My program can calculate first 16 numbers in one second
Posted by
Petrenuk (NNSTU)
18 Sep 2011 02:58
http://en.wikipedia.org/wiki/Lucas–Lehmer_primality_test
- using this.
Re: My program can calculate first 16 numbers in one second
Posted by
gonmrod
1 Jan 2012 09:22
Thanks for the excellent reference. My alternative was to precalculate in an array, as time always exceeded 1 second.
© 2000–2024
Timus Online Judge Team
. All rights reserved.