Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro Java
|
Pro Java Expert level Java questions not about a specific book. Please indicate your version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 14th, 2006, 06:52 PM
Registered User
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Primality algorithm for isProbablePrime?

Does anyone know which primality algorithm isProbablePrime in java.math.BigInteger uses?
I suspect it might use either Miller-Rabin or Solovay-Strassen?

Also, what algorithm does ProbablePrime use to hand out a random prime number?

I've gone a head and coded a nice prime tester based on Fermat's Little Theorem, which you can view here: http://my.opera.com/duddev/blog/show.dml/298370
I suspect isProbablePrime does not use Fermat's primality test...

Visit my blog please?
http://my.opera.com/duddev/blog/





Similar Threads
Thread Thread Starter Forum Replies Last Post
apriori algorithm iralala J2EE 4 January 1st, 2014 06:49 PM
Can someone help me with this algorithm please! th kishan4910 VB How-To 18 February 5th, 2008 07:15 AM
algorithm angelboy Other Programming Languages 0 April 14th, 2007 08:56 AM
Typical Algorithm rajanikrishna ASP.NET 1.0 and 1.1 Professional 0 November 20th, 2006 03:05 AM
Algorithm kvanchi General .NET 3 January 20th, 2005 05:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.