summaryrefslogtreecommitdiff
path: root/lib/prime.rb
Commit message (Expand)AuthorAgeFilesLines
* Improve docs for Prime.{prime_division,int_from_prime_division} (#8)Marcus Stollsteimer2020-03-061-18/+29
* [ruby/prime] Fix typoMarcus Stollsteimer2020-03-061-1/+1
* [ruby/prime] Improve docs for Prime.include? (#7)Marcus Stollsteimer2020-03-061-1/+2
* [ruby/prime] Fix Prime.include?Jeremy Evans2020-03-061-0/+12
* [ruby/prime] Bump versionMarc-Andre Lafortune2019-12-221-1/+1
* proc.c: proc without blocknobu2019-01-101-3/+3
* lib/prime.rb: remove unused methodsmame2018-06-241-7/+0
* Promote Prime library to default gems.hsbt2018-06-021-0/+3
* prime.rb: remove alias after timeout teststomar2017-05-201-1/+1
* lib/prime: Fix primality of some large integers [#13492].marcandre2017-05-201-2/+2
* * basictest/test.rb: Adjust spaces in class declarationshsbt2016-10-071-2/+2
* * lib/prime.rb: Optimize prime?marcandre2016-08-101-5/+6
* Add frozen_string_literal: false for all filesnaruse2015-12-161-0/+1
* * lib/prime.rb: Add basic argument checking to Prime.prime?marcandre2015-10-201-0/+2
* * lib/prime.rb: Optimize Integer#prime?marcandre2015-10-201-1/+8
* * lib/prime.rb: Return sized enumerators.marcandre2015-06-121-2/+6
* * lib/prime.rb: Fix with_object with no block givenmarcandre2015-06-121-1/+1
* * lib/prime.rb: Have with_index accept an offset parameter.marcandre2015-06-121-1/+9
* * lib/prime.rb: Simplify and optimize EratosthenesSievemarcandre2015-06-091-3/+2
* * lib/prime.rb: Simplify and optimize EratosthenesSievemarcandre2015-06-091-3/+4
* * lib/matrix.rb: Simplify and optimize EratosthenesSievemarcandre2015-06-091-5/+2
* * lib/matrix.rb: Stylingmarcandre2015-05-221-6/+6
* * lib/prime.rb: Remove obsolete Prime.newmarcandre2015-05-221-41/+1
* * lib/prime.rb: Remove useless loop and block capture.marcandre2014-12-101-16/+14
* * lib/cgi/core.rb: remove unused variables.hsbt2014-07-271-1/+1
* prime.rb: fix a grammonobu2014-05-241-1/+1
* add information of incompatibility about Prime.prime? [Bug #7395]ayumin2014-05-231-2/+2
* * lib/prime.rb (Prime#prime?): negative numbers can't be primesayumin2014-05-081-1/+0
* * lib/prime.rb (Prime::EratosthenesGenerator,yugui2013-07-151-56/+37
* * lib/prime.rb: Corrected a few comments. Patch by @Nullset14.charliesome2013-06-301-18/+18
* * lib/irb.rb, lib/prime.rb: Typos in overviewzzak2013-01-131-1/+1
* * lib/prime.rb: Indent examples enough to appear as code sections.drbrain2011-06-011-18/+32
* * lib: revert r31635-r31638 and untabify with expand(1).nobu2011-05-191-334/+334
* * lib: Convert tabs to spaces for ruby files perdrbrain2011-05-181-337/+337
* * lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].nobu2010-03-201-1/+1
* * test/test_prime.rbyugui2009-10-181-19/+43
* * lib/prime.rb (EratosthenesGenerator#initialize): call super.nobu2009-09-131-2/+5
* * lib/prime.rb (Prime#prime_division): now decomposesyugui2009-07-131-1/+6
* * lib/prime.rb: documentation typo fixed. a patch from okkez.matz2009-06-111-2/+2
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-061-28/+28
* * lib/prime.rb (Prime::prime?): used to return a wrong answer.yugui2009-03-031-0/+2
* * lib/optparse/version.rb: remove variable shadowing to stopmatz2008-12-181-2/+2
* * enumerator.c (enumerator_next): Fix a typo: s/rewinded/rewound/.knu2008-12-101-1/+1
* * lib/prime.rb (Prime::OldCompatibility#each): added compatibility toyugui2008-09-041-20/+35
* * lib/mathn.rb (Integer): moved into prime.rb.yugui2008-09-031-0/+446