summaryrefslogtreecommitdiffstats
path: root/primes
Commit message (Collapse)AuthorAgeFilesLines
* games: remove trailing whitespace in *.c and *.hrillig2021-05-051-4/+4
|
* Use PREFIX nowCameron Katri2021-03-281-2/+2
|
* Get all the games compiling for iOSCameron Katri2021-02-221-3/+14
|
* PR/52976: Eitan Adler: handle larger primeschristos2018-02-034-31/+38
| | | | | | | | | | | Using results from J. Sorenson and J. Webster, Strong pseudoprimes to twelve prime bases, Math. Comp. 86(304):985-1003, 2017. teach primes(6) to enumerate primes up to 2^64 - 1. Until Sorenson and Webster's paper, we did not know how many strong speudoprime tests were required when testing alleged primes between 3825123056546413051 and 2^64 - 1. Adapted from: FreeBSD
* usage policewiz2014-10-042-8/+8
|
* Imported and adapted from FreeBSD svn r272166 and r272207; this fixesast2014-10-027-104/+331
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | false positives for products of primes larger than 2^16. For example, before this commit: $ /usr/games/primes 4295360521 4295360522 4295360521 but $ /usr/games/factor 4295360521 4295360521: 65539 65539 or $ /usr/games/primes 3825123056546413049 3825123056546413050 3825123056546413049 yet $ /usr/games/factor 3825123056546413049 3825123056546413049: 165479 23115459100831 or $ /usr/games/primes 18446744073709551577 18446744073709551577 although $ /usr/games/factor 18446744073709551577 18446744073709551577: 139646831 132095686967 Incidentally, the above examples show the smallest and largest cases that were erroneously stated as prime in the range 2^32 .. 3825123056546413049 .. 2^64; the primes(6) program now stops at 3825123056546413050 as primality tests on larger integers would be by brute force factorization. In addition, special to the NetBSD version: . for -d option, skip first difference when start is >65537 as it is incorrect . corrected usage to mention both the existing -d as well as the new -h option For original FreeBSD commit message by Colin Percival, see: http://svnweb.freebsd.org/base?view=revision&revision=272166
* No need to cast double to ubig (aka uintmax_t) through int.jakllsch2011-08-301-5/+4
| | | | | This change prevents a modulo by zero in a invocation such as: primes 18446744073709551000 18446744073709551615 on a LP64 machine.
* cast isblank(3)'s argument to unsigned char.tnozaki2010-05-131-3/+3
|
* sprinkle staticdholland2009-08-121-8/+7
|
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* Document -d.wiz2008-02-031-2/+8
|
* Add a -d flag so that primes will print the difference between the currentmatt2008-02-021-14/+31
| | | | | prime and the previous prime. [I needed that for some reason I don't recall and these changes lying about. Since they might be useful/interesting to someone, I might as well as commit them.]
* Fix typo: sive -> sieve.matt2008-02-021-3/+3
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-151-3/+3
|
* |fmt; add single quotes around a plus.wiz2004-02-091-3/+5
|
* Separate primes manpage from that of factor. Correct DIAGNOSTICSjsm2004-02-082-3/+89
| | | information.
* Remove uses of __P.jsm2004-01-271-6/+6
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-074-27/+11
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* some makefile de-lintinglukem2002-09-181-2/+3
|
* MKfoo=no -> NOfoo=tv2001-12-121-6/+6
|
* avoid strange typcast.itojun2001-01-202-9/+10
|
* Add use of `const' where appropriate to the games.jsm1999-09-083-15/+15
| | | | | | | | | This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Some such changes were previously covered in PRs bin/6041, bin/6146, bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994, bin/8039, bin/8057 and bin/8093.
* convert from NOxxx= to MKxxx=no.lukem1999-02-131-2/+2
| | | include <bsd.own.mk> if testing a MKxxx variable.
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-3/+3
|
* WARNSifylukem1997-10-123-17/+20
|
* Sync to 4.4BSD-Lite2tls1997-01-071-3/+4
|
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-5/+5
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* merge with Lite, new RCS id conventions, etc.cgd1995-03-235-218/+152
|
* bin/144: patch from Arne Juul <arnej@dsl.unit.no> to deal with bigcgd1994-03-012-19/+19
| | | numbers
* Add RCS identifiers.mycroft1993-08-014-4/+8
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-215-0/+1461