From owner-svn-src-head@freebsd.org Sun Jun 4 06:41:19 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06780AFC0D8; Sun, 4 Jun 2017 06:41:19 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com [209.85.128.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6D5206774F; Sun, 4 Jun 2017 06:41:18 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-wr0-f177.google.com with SMTP id v111so17327375wrc.3; Sat, 03 Jun 2017 23:41:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=ijEUFOUbI2VWEdFhRPGuPa+CY441hU7xqSuK0BOUhuU=; b=Liu541K5uuUEPTcTNd5JhfvfPXi635TbKRMiGhRhJkJVgqwawr/7cKlEwJgDOnBNF6 eB8ZK52XLLXicmS0CFpFdhf6UEK4XD/7/VrpgoPgCbDT1yg4IEU+7GLYjqw6HXDRQ9Sn eZDAlDeD0innV+gKJfgYvx4gJFBwZbfxg8Mre72a3UcKP0Z/2pbMza6aSVTsW8DmTKqn Wax+8gkfCjhN5q5it/h+9POWIOb5ogl7GYyaXF06t+QFAWA7da3Ihf9wVgPYym+Mbt+c 7ux2p2yq0b73FkjPAspwKPNWo0DguXjDfoRljNlrxkS5f11syC0vf5kVVRBRDbOskEN+ z44g== X-Gm-Message-State: AODbwcAZ0z6p/S1kQvY+5d2RFwHFzhzyHdOVxs9GeNt2RyNs1gjKSIh/ Wa2107yPAkdW+XtyRLU= X-Received: by 10.223.151.42 with SMTP id r39mr9754525wrb.189.1496556737505; Sat, 03 Jun 2017 23:12:17 -0700 (PDT) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com. [74.125.82.47]) by smtp.gmail.com with ESMTPSA id o97sm28067586wrc.48.2017.06.03.23.12.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Jun 2017 23:12:17 -0700 (PDT) Received: by mail-wm0-f47.google.com with SMTP id 7so51481129wmo.1; Sat, 03 Jun 2017 23:12:17 -0700 (PDT) X-Received: by 10.80.172.134 with SMTP id x6mr12121102edc.12.1496556737203; Sat, 03 Jun 2017 23:12:17 -0700 (PDT) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.80.169.38 with HTTP; Sat, 3 Jun 2017 23:12:16 -0700 (PDT) In-Reply-To: <201706040236.v542ac6c056561@repo.freebsd.org> References: <201706040236.v542ac6c056561@repo.freebsd.org> From: Conrad Meyer Date: Sat, 3 Jun 2017 23:12:16 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r319561 - head/usr.bin/primes To: Colin Percival Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jun 2017 06:41:19 -0000 Hi Colin, Minor nitpicking follows. On Sat, Jun 3, 2017 at 7:36 PM, Colin Percival wrote: > Author: cperciva > Date: Sun Jun 4 02:36:37 2017 > New Revision: 319561 > URL: https://svnweb.freebsd.org/changeset/base/319561 > > Log: > 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. > ... > Modified: head/usr.bin/primes/primes.c > ============================================================================== > --- head/usr.bin/primes/primes.c Sun Jun 4 02:21:38 2017 (r319560) > +++ head/usr.bin/primes/primes.c Sun Jun 4 02:36:37 2017 (r319561) > @@ -120,7 +120,7 @@ main(int argc, char *argv[]) > argv += optind; > > start = 0; > - stop = SPSPMAX; > + stop = (uint64_t)(-1); Isn't this usually spelled UINT64_MAX? Best, Conrad