From 6f93bf77c448e4a2aed8ea2656726fd6bd90a725 Mon Sep 17 00:00:00 2001 From: yugui Date: Wed, 3 Sep 2008 13:57:21 +0000 Subject: * lib/mathn.rb (Integer): moved into prime.rb. (Prime): ditto. * lib/prime.rb (Integer): moved from mathn.rb. (Integer.each_prime): added. (Integer#prime?): added. (Prime): moved from mathn.rb. Its implmentation was rewritten. see [ruby-dev:35863]. And patched by Keiju ISHITSUKA , see [ruby-dev:36128]. (Prime.new): obsolete. (Prime.instance): added. (Prime.each): added. (Prime.int_from_prime_division): added. (Prime.prime_division): added. (Prime.prime?): added. Patch by TOYOFUKU Chikanobu in [ruby-dev:36067]. (Prime.cache): removed. (Prime.primes): removed. (Prime.primes_so_far): removed. (Prime#int_from_prime_division): added. (Prime#prime_division): added. (Prime#prime?): added. (Prime#primes): removed. (Prime#primes_so_far): removed. (Prime::PseudoPrmeGenerator): added. (Prime::EratosthenesGenerator): added. (Prime::TrialDivisionGenerator): added. (Prime::Generator23): added. (Prime::TrialDivision): added. Extracted from the previous implementation of Prime by Keiju ISHITSUKA. (Prime::EratosthenesSieve): added. * lib/.document (prime.rb): added * lib/README (prime.rb): added * test/test_prime.rb: added. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/README | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/README') diff --git a/lib/README b/lib/README index 074741f95..1132755cf 100644 --- a/lib/README +++ b/lib/README @@ -42,6 +42,7 @@ parsedate.rb parses date string (obsolete) pathname.rb Object-Oriented Pathname Class pp.rb pretty print objects prettyprint.rb pretty printing algorithm +prime.rb prime numbers and factorization profile.rb runs ruby profiler profiler.rb ruby profiler module pstore.rb persistent object strage using marshal -- cgit