head 1.8; access; symbols netbsd-11-0-RC4:1.8 netbsd-11-0-RC3:1.8 netbsd-11-0-RC2:1.8 netbsd-11-0-RC1:1.8 perseant-exfatfs-base-20250801:1.8 netbsd-11:1.8.0.30 netbsd-11-base:1.8 netbsd-10-1-RELEASE:1.8 perseant-exfatfs-base-20240630:1.8 perseant-exfatfs:1.8.0.28 perseant-exfatfs-base:1.8 netbsd-8-3-RELEASE:1.8 netbsd-9-4-RELEASE:1.8 netbsd-10-0-RELEASE:1.8 netbsd-10-0-RC6:1.8 netbsd-10-0-RC5:1.8 netbsd-10-0-RC4:1.8 netbsd-10-0-RC3:1.8 netbsd-10-0-RC2:1.8 netbsd-10-0-RC1:1.8 netbsd-10:1.8.0.26 netbsd-10-base:1.8 netbsd-9-3-RELEASE:1.8 cjep_sun2x-base1:1.8 cjep_sun2x:1.8.0.24 cjep_sun2x-base:1.8 cjep_staticlib_x-base1:1.8 netbsd-9-2-RELEASE:1.8 cjep_staticlib_x:1.8.0.22 cjep_staticlib_x-base:1.8 netbsd-9-1-RELEASE:1.8 phil-wifi-20200421:1.8 phil-wifi-20200411:1.8 is-mlppp:1.8.0.20 is-mlppp-base:1.8 phil-wifi-20200406:1.8 netbsd-8-2-RELEASE:1.8 netbsd-9-0-RELEASE:1.8 netbsd-9-0-RC2:1.8 netbsd-9-0-RC1:1.8 phil-wifi-20191119:1.8 netbsd-9:1.8.0.18 netbsd-9-base:1.8 phil-wifi-20190609:1.8 netbsd-8-1-RELEASE:1.8 netbsd-8-1-RC1:1.8 pgoyette-compat-merge-20190127:1.8 pgoyette-compat-20190127:1.8 pgoyette-compat-20190118:1.8 pgoyette-compat-1226:1.8 pgoyette-compat-1126:1.8 pgoyette-compat-1020:1.8 pgoyette-compat-0930:1.8 pgoyette-compat-0906:1.8 netbsd-7-2-RELEASE:1.7.74.1 pgoyette-compat-0728:1.8 netbsd-8-0-RELEASE:1.8 phil-wifi:1.8.0.16 phil-wifi-base:1.8 pgoyette-compat-0625:1.8 netbsd-8-0-RC2:1.8 pgoyette-compat-0521:1.8 pgoyette-compat-0502:1.8 pgoyette-compat-0422:1.8 netbsd-8-0-RC1:1.8 pgoyette-compat-0415:1.8 pgoyette-compat-0407:1.8 pgoyette-compat-0330:1.8 pgoyette-compat-0322:1.8 pgoyette-compat-0315:1.8 netbsd-7-1-2-RELEASE:1.7.74.1 pgoyette-compat:1.8.0.14 pgoyette-compat-base:1.8 netbsd-7-1-1-RELEASE:1.7.74.1 matt-nb8-mediatek:1.8.0.12 matt-nb8-mediatek-base:1.8 perseant-stdc-iso10646:1.8.0.10 perseant-stdc-iso10646-base:1.8 netbsd-8:1.8.0.8 netbsd-8-base:1.8 prg-localcount2-base3:1.8 prg-localcount2-base2:1.8 prg-localcount2-base1:1.8 prg-localcount2:1.8.0.6 prg-localcount2-base:1.8 pgoyette-localcount-20170426:1.8 bouyer-socketcan-base1:1.8 pgoyette-localcount-20170320:1.8 netbsd-7-1:1.7.74.1.0.6 netbsd-7-1-RELEASE:1.7.74.1 netbsd-7-1-RC2:1.7.74.1 netbsd-7-nhusb-base-20170116:1.7.74.1 bouyer-socketcan:1.8.0.4 bouyer-socketcan-base:1.8 pgoyette-localcount-20170107:1.8 netbsd-7-1-RC1:1.7.74.1 pgoyette-localcount-20161104:1.8 netbsd-7-0-2-RELEASE:1.7.74.1 localcount-20160914:1.8 netbsd-7-nhusb:1.7.74.1.0.4 netbsd-7-nhusb-base:1.7.74.1 pgoyette-localcount-20160806:1.8 pgoyette-localcount-20160726:1.8 pgoyette-localcount:1.8.0.2 pgoyette-localcount-base:1.8 netbsd-7-0-1-RELEASE:1.7.74.1 netbsd-7-0:1.7.74.1.0.2 netbsd-7-0-RELEASE:1.7.74.1 netbsd-7-0-RC3:1.7.74.1 netbsd-7-0-RC2:1.7.74.1 netbsd-7-0-RC1:1.7.74.1 netbsd-5-2-3-RELEASE:1.7 netbsd-5-1-5-RELEASE:1.7 netbsd-6-0-6-RELEASE:1.7 netbsd-6-1-5-RELEASE:1.7 netbsd-7:1.7.0.74 netbsd-7-base:1.7 yamt-pagecache-base9:1.7 yamt-pagecache-tag8:1.7 netbsd-6-1-4-RELEASE:1.7 netbsd-6-0-5-RELEASE:1.7 tls-earlyentropy:1.7.0.72 tls-earlyentropy-base:1.7 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7 riastradh-drm2-base3:1.7 netbsd-6-1-3-RELEASE:1.7 netbsd-6-0-4-RELEASE:1.7 netbsd-5-2-2-RELEASE:1.7 netbsd-5-1-4-RELEASE:1.7 netbsd-6-1-2-RELEASE:1.7 netbsd-6-0-3-RELEASE:1.7 netbsd-5-2-1-RELEASE:1.7 netbsd-5-1-3-RELEASE:1.7 netbsd-6-1-1-RELEASE:1.7 riastradh-drm2-base2:1.7 riastradh-drm2-base1:1.7 riastradh-drm2:1.7.0.66 riastradh-drm2-base:1.7 netbsd-6-1:1.7.0.70 netbsd-6-0-2-RELEASE:1.7 netbsd-6-1-RELEASE:1.7 netbsd-6-1-RC4:1.7 netbsd-6-1-RC3:1.7 agc-symver:1.7.0.68 agc-symver-base:1.7 netbsd-6-1-RC2:1.7 netbsd-6-1-RC1:1.7 yamt-pagecache-base8:1.7 netbsd-5-2:1.7.0.64 netbsd-6-0-1-RELEASE:1.7 yamt-pagecache-base7:1.7 netbsd-5-2-RELEASE:1.7 netbsd-5-2-RC1:1.7 matt-nb6-plus-nbase:1.7 yamt-pagecache-base6:1.7 netbsd-6-0:1.7.0.62 netbsd-6-0-RELEASE:1.7 netbsd-6-0-RC2:1.7 tls-maxphys:1.7.0.60 tls-maxphys-base:1.7 matt-nb6-plus:1.7.0.58 matt-nb6-plus-base:1.7 netbsd-6-0-RC1:1.7 yamt-pagecache-base5:1.7 yamt-pagecache-base4:1.7 netbsd-6:1.7.0.56 netbsd-6-base:1.7 netbsd-5-1-2-RELEASE:1.7 netbsd-5-1-1-RELEASE:1.7 yamt-pagecache-base3:1.7 yamt-pagecache-base2:1.7 yamt-pagecache:1.7.0.54 yamt-pagecache-base:1.7 cherry-xenmp:1.7.0.52 cherry-xenmp-base:1.7 bouyer-quota2-nbase:1.7 bouyer-quota2:1.7.0.50 bouyer-quota2-base:1.7 matt-mips64-premerge-20101231:1.7 matt-nb5-mips64-premerge-20101231:1.7 matt-nb5-pq3:1.7.0.48 matt-nb5-pq3-base:1.7 netbsd-5-1:1.7.0.46 netbsd-5-1-RELEASE:1.7 netbsd-5-1-RC4:1.7 matt-nb5-mips64-k15:1.7 netbsd-5-1-RC3:1.7 netbsd-5-1-RC2:1.7 netbsd-5-1-RC1:1.7 netbsd-5-0-2-RELEASE:1.7 matt-nb5-mips64-premerge-20091211:1.7 matt-premerge-20091211:1.7 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.7 matt-nb4-mips64-k7-u2a-k9b:1.7 matt-nb5-mips64-u1-k1-k5:1.7 matt-nb5-mips64:1.7.0.44 netbsd-5-0-1-RELEASE:1.7 jym-xensuspend-nbase:1.7 netbsd-5-0:1.7.0.42 netbsd-5-0-RELEASE:1.7 netbsd-5-0-RC4:1.7 netbsd-5-0-RC3:1.7 netbsd-5-0-RC2:1.7 jym-xensuspend:1.7.0.40 jym-xensuspend-base:1.7 netbsd-5-0-RC1:1.7 netbsd-5:1.7.0.38 netbsd-5-base:1.7 matt-mips64-base2:1.7 matt-mips64:1.7.0.36 mjf-devfs2:1.7.0.34 mjf-devfs2-base:1.7 netbsd-4-0-1-RELEASE:1.7 wrstuden-revivesa-base-3:1.7 wrstuden-revivesa-base-2:1.7 wrstuden-fixsa-newbase:1.7 wrstuden-revivesa-base-1:1.7 yamt-pf42-base4:1.7 yamt-pf42-base3:1.7 hpcarm-cleanup-nbase:1.7 yamt-pf42-baseX:1.7 yamt-pf42-base2:1.7 wrstuden-revivesa:1.7.0.32 wrstuden-revivesa-base:1.7 yamt-pf42:1.7.0.30 yamt-pf42-base:1.7 keiichi-mipv6:1.7.0.28 keiichi-mipv6-base:1.7 matt-armv6-nbase:1.7 matt-armv6-prevmlocking:1.7 wrstuden-fixsa-base-1:1.7 netbsd-4-0:1.7.0.26 netbsd-4-0-RELEASE:1.7 cube-autoconf:1.7.0.24 cube-autoconf-base:1.7 netbsd-4-0-RC5:1.7 netbsd-4-0-RC4:1.7 netbsd-4-0-RC3:1.7 netbsd-4-0-RC2:1.7 netbsd-4-0-RC1:1.7 matt-armv6:1.7.0.22 matt-armv6-base:1.7 matt-mips64-base:1.7 hpcarm-cleanup:1.7.0.20 hpcarm-cleanup-base:1.7 netbsd-3-1-1-RELEASE:1.7 netbsd-3-0-3-RELEASE:1.7 wrstuden-fixsa:1.7.0.18 wrstuden-fixsa-base:1.7 abandoned-netbsd-4-base:1.7 abandoned-netbsd-4:1.7.0.12 netbsd-3-1:1.7.0.14 netbsd-3-1-RELEASE:1.7 netbsd-3-0-2-RELEASE:1.7 netbsd-3-1-RC4:1.7 netbsd-3-1-RC3:1.7 netbsd-3-1-RC2:1.7 netbsd-3-1-RC1:1.7 netbsd-4:1.7.0.16 netbsd-4-base:1.7 netbsd-3-0-1-RELEASE:1.7 netbsd-3-0:1.7.0.10 netbsd-3-0-RELEASE:1.7 netbsd-3-0-RC6:1.7 netbsd-3-0-RC5:1.7 netbsd-3-0-RC4:1.7 netbsd-3-0-RC3:1.7 netbsd-3-0-RC2:1.7 netbsd-3-0-RC1:1.7 netbsd-2-0-3-RELEASE:1.7 netbsd-2-1:1.7.0.8 netbsd-2-1-RELEASE:1.7 netbsd-2-1-RC6:1.7 netbsd-2-1-RC5:1.7 netbsd-2-1-RC4:1.7 netbsd-2-1-RC3:1.7 netbsd-2-1-RC2:1.7 netbsd-2-1-RC1:1.7 netbsd-2-0-2-RELEASE:1.7 netbsd-3:1.7.0.6 netbsd-3-base:1.7 netbsd-2-0-1-RELEASE:1.7 netbsd-2:1.7.0.4 netbsd-2-base:1.7 netbsd-2-0-RELEASE:1.7 netbsd-2-0-RC5:1.7 netbsd-2-0-RC4:1.7 netbsd-2-0-RC3:1.7 netbsd-2-0-RC2:1.7 netbsd-2-0-RC1:1.7 netbsd-2-0:1.7.0.2 netbsd-2-0-base:1.7 netbsd-1-6-PATCH002-RELEASE:1.5 netbsd-1-6-PATCH002:1.5 netbsd-1-6-PATCH002-RC4:1.5 netbsd-1-6-PATCH002-RC3:1.5 netbsd-1-6-PATCH002-RC2:1.5 netbsd-1-6-PATCH002-RC1:1.5 netbsd-1-6-PATCH001:1.5 netbsd-1-6-PATCH001-RELEASE:1.5 netbsd-1-6-PATCH001-RC3:1.5 netbsd-1-6-PATCH001-RC2:1.5 netbsd-1-6-PATCH001-RC1:1.5 fvdl_fs64_base:1.6 netbsd-1-6-RELEASE:1.5 netbsd-1-6-RC3:1.5 netbsd-1-6-RC2:1.5 netbsd-1-6-RC1:1.5 netbsd-1-6:1.5.0.2 netbsd-1-6-base:1.5 netbsd-1-5-PATCH003:1.4 netbsd-1-5-PATCH002:1.4 netbsd-1-5-PATCH001:1.4 netbsd-1-5-RELEASE:1.4 netbsd-1-5-BETA2:1.4 netbsd-1-5-BETA:1.4 netbsd-1-4-PATCH003:1.4 netbsd-1-5-ALPHA2:1.4 netbsd-1-5:1.4.0.10 netbsd-1-5-base:1.4 minoura-xpg4dl:1.4.0.8 minoura-xpg4dl-base:1.4 netbsd-1-4-PATCH002:1.4 wrstuden-devbsize-19991221:1.4 wrstuden-devbsize:1.4.0.6 wrstuden-devbsize-base:1.4 comdex-fall-1999:1.4.0.4 comdex-fall-1999-base:1.4 netbsd-1-4-PATCH001:1.4 netbsd-1-4-RELEASE:1.4 netbsd-1-4:1.4.0.2 netbsd-1-4-base:1.4 netbsd-1-3-PATCH003:1.3 netbsd-1-3-PATCH003-CANDIDATE2:1.3 netbsd-1-3-PATCH003-CANDIDATE1:1.3 netbsd-1-3-PATCH003-CANDIDATE0:1.3 netbsd-1-3-PATCH002:1.3 netbsd-1-3-PATCH001:1.3 netbsd-1-3-RELEASE:1.3 netbsd-1-3-BETA:1.3 netbsd-1-3:1.3.0.4 netbsd-1-3-base:1.3 netbsd-1-2-PATCH001:1.3 lite-2:1.1.1.2 netbsd-1-2-RELEASE:1.3 netbsd-1-2-BETA:1.3 netbsd-1-2-base:1.3 netbsd-1-2:1.3.0.6 netbsd-1-1-PATCH001:1.3 netbsd-1-1-RELEASE:1.3 netbsd-1-1:1.3.0.2 netbsd-1-1-base:1.3 lite-1:1.1.1.2 CSRG:1.1.1 netbsd-1-0-PATCH06:1.2 netbsd-1-0-PATCH05:1.2 netbsd-1-0-PATCH04:1.2 netbsd-1-0-PATCH03:1.2 netbsd-1-0-PATCH02:1.2 netbsd-1-0-PATCH1:1.2 netbsd-1-0-PATCH0:1.2 netbsd-1-0-RELEASE:1.2 netbsd-1-0:1.2.0.2 netbsd-1-0-base:1.2 netbsd-0-9-RELEASE:1.1.1.1 netbsd-0-9-BETA:1.1.1.1 netbsd-0-9-ALPHA2:1.1.1.1 netbsd-0-9-ALPHA:1.1.1.1 netbsd-0-9:1.1.1.1.0.2 netbsd-0-9-base:1.1.1.1 netbsd-0-8:1.1.1.1 netbsd-alpha-1:1.1.1.1 patchkit-0-2-2:1.1.1.1 WFJ-386bsd-01:1.1.1.1 WFJ-920714:1.1.1; locks; strict; comment @# @; 1.8 date 2014.10.02.21.36.37; author ast; state Exp; branches; next 1.7; commitid 8VhYmuMEelwuMFSx; 1.7 date 2004.02.08.13.16.25; author jsm; state Exp; branches 1.7.74.1; next 1.6; 1.6 date 2002.09.18.06.16.41; author lukem; state Exp; branches; next 1.5; 1.5 date 2001.12.12.00.07.49; author tv; state Exp; branches; next 1.4; 1.4 date 99.02.13.02.54.22; author lukem; state Exp; branches; next 1.3; 1.3 date 95.03.23.08.35.43; author cgd; state Exp; branches; next 1.2; 1.2 date 93.08.01.05.44.42; author mycroft; state Exp; branches; next 1.1; 1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches 1.1.1.1; next ; 1.7.74.1 date 2014.10.05.10.21.04; author martin; state Exp; branches; next ; commitid 6uaC67dZRKk8XZSx; 1.1.1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 95.03.21.16.09.23; author cgd; state Exp; branches; next ; desc @@ 1.8 log @Imported and adapted from FreeBSD svn r272166 and r272207; this fixes 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 @ text @# $NetBSD: Makefile,v 1.7 2004/02/08 13:16:25 jsm Exp $ # @@(#)Makefile 8.1 (Berkeley) 5/31/93 PROG= primes SRCS= pattern.c pr_tbl.c primes.c spsp.c MAN= primes.6 DPADD= ${LIBM} LDADD= -lm .include @ 1.7 log @Separate primes manpage from that of factor. Correct DIAGNOSTICS information. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.6 2002/09/18 06:16:41 lukem Exp $ d5 1 a5 1 SRCS= pattern.c pr_tbl.c primes.c @ 1.7.74.1 log @Pull up following revision(s) (requested by ast in ticket #128): games/primes/pattern.c: revision 1.7 games/primes/primes.h: revision 1.6 games/primes/spsp.c: revision 1.1 games/primes/Makefile: revision 1.8 games/factor/factor.c: revision 1.27 games/factor/factor.6: revision 1.13 games/primes/primes.c: revision 1.20 games/primes/primes.c: revision 1.21 games/primes/pr_tbl.c: revision 1.8 games/primes/primes.6: revision 1.4 games/primes/primes.6: revision 1.5 Imported and adapted from FreeBSD svn r272166 and r272207; this fixes 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 usage police @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.7 2004/02/08 13:16:25 jsm Exp $ d5 1 a5 1 SRCS= pattern.c pr_tbl.c primes.c spsp.c @ 1.6 log @some makefile de-linting @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.5 2001/12/12 00:07:49 tv Exp $ a3 2 NOMAN= # defined d6 1 @ 1.5 log @MKfoo=no -> NOfoo= @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.4 1999/02/13 02:54:22 lukem Exp $ d4 2 a7 1 NOMAN= # defined @ 1.4 log @convert from NOxxx= to MKxxx=no. include if testing a MKxxx variable. @ text @d1 1 a1 1 # $NetBSD: Makefile,v 1.3 1995/03/23 08:35:43 cgd Exp $ d4 5 a8 5 PROG= primes SRCS= pattern.c pr_tbl.c primes.c MKMAN= no DPADD= ${LIBM} LDADD= -lm @ 1.3 log @merge with Lite, new RCS id conventions, etc. @ text @d1 1 a1 1 # $NetBSD$ d6 1 a6 1 NOMAN= noman @ 1.2 log @Add RCS identifiers. @ text @d1 2 a2 2 # from: @@(#)Makefile 5.1 (Berkeley) 5/11/90 # $Id: $ @ 1.1 log @Initial revision @ text @d1 2 a2 1 # @@(#)Makefile 5.1 (Berkeley) 5/11/90 @ 1.1.1.1 log @initial import of 386bsd-0.1 sources @ text @@ 1.1.1.2 log @from Lite @ text @d1 1 a1 1 # @@(#)Makefile 8.1 (Berkeley) 5/31/93 @