hey well... you must have a look at this package "pari gp" try googling and you can download this package, its very small and is the best of its kind available till date... You can also get the code for the same...
-Sudarshan ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Algorithm Geeks" <algogeeks@googlegroups.com> Sent: Tuesday, November 29, 2005 7:45 PM Subject: [algogeeks] how to find Previous Prime number? > > Hi everbody > Given a number which can be as long as 10000 digits, is there a method > to find the previous prime number to it? > > ~venkatesh >