Search found 1 match

by TheHiveMind
Fri Jul 03, 2009 8:26 am
Forum: Challenges Solved
Topic: Primal Pi
Replies: 8
Views: 629

My approach.

Basically the same as everyone else, using GMP with C. For brevity I cut out the prescreening, that would lower the 1.5 minutes it took to run a little bit ( mpz_probab_prime_p() performs some trial divisions first as well). #include <stdio.h> #include <gmp.h> int main() { mpz_t candidate; char pi[2...