Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7616ED112 for ; Sun, 10 Mar 2013 21:11:13 +0000 (UTC) Received: (qmail 86256 invoked by uid 500); 10 Mar 2013 21:11:13 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 86201 invoked by uid 500); 10 Mar 2013 21:11:13 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 86192 invoked by uid 99); 10 Mar 2013 21:11:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Mar 2013 21:11:13 +0000 Date: Sun, 10 Mar 2013 21:11:13 +0000 (UTC) From: "Luc Maisonobe (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (MATH-845) Basic number theory features such as primality testing, factorization and prime number generation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luc Maisonobe resolved MATH-845. -------------------------------- Resolution: Fixed Fixed in subversion repository as of r1454920. Patch applied with a few changes: * replaced assert by comments * formatting (spaces, braces, control statements on one line...) * very long performance tests not committed * updated tests to Junit 4 As the latest comments suggested it would not be easy to extend this package to long or BigIntegers, I have left the Primes class as first proposed, without an upper parameterized interface. Thanks for the suggestion and for the patch! > Basic number theory features such as primality testing, factorization and prime number generation > ------------------------------------------------------------------------------------------------- > > Key: MATH-845 > URL: https://issues.apache.org/jira/browse/MATH-845 > Project: Commons Math > Issue Type: New Feature > Affects Versions: 3.1 > Environment: ubuntu/java6/intel-i5 > Reporter: Sebastien Riou > Priority: Minor > Labels: features > Fix For: 3.2 > > Attachments: primes-src.zip > > Original Estimate: 24h > Remaining Estimate: 24h > > A set of static methods to perform primality test, factorization and prime number generation. Currently it is limited to the int data type, extension to long/BigInteger will follow. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira