Bill Allombert on Thu, 01 Feb 2024 21:14:46 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: primepi([from,until])
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: Re: primepi([from,until])
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Thu, 1 Feb 2024 21:14:42 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1706818483; c=relaxed/relaxed; bh=bdUwfrfuLTMgjpf45ydyw3naSn9+L6TIk9dfDYr2ydU=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:Mail-Followup-To: References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; b=DI42LP00z7piVBbmOSQRd5gz2P4NjMt1m+D+NP4JIgZKEAKVtacWV3I43hGvf2yPnaSDaxy5UvbOLzxTqf2+2uVw+M68Qw2Od3cghArlIv25kLyDektXoTMcmr4l/vodiartheVnhu0MIecUT4/4DGl3gLF2gx42TcTw5bJki91FSs93R0qXT1bpT2HVltvper3OB5c+04zRuXNWdYX1a5BkRb+8FvT1KrlI9P98AzviRwo+AygQQ/tJEmdie912cyuvcFU6HwR1kSVC/a2v6GRSKvSyeFkxNVvBHc5HyZrvHHY7nQrje+/V42FuiJZcQ2bWD3KUBcs9C5SAi4p6g384264BAOq+lIGs2ez3BJINN2c6BsswobrM60xdqQCLB0y2P/83/cPPicRce9J1NcA82J7kiji5kL6MFUL/98DFZvq4pBTGzuvVIrh7XW3xxMXM63f7fDcYsFitbdb3Rf3wksbNigRnEkK4K9YSZkm9aIDYMg8T3NNbxBn7EsXgpd/nXKOjidUHvxN23OZ9UHWOi1aT14KUvbDK5EPk/3GuSo8BAlFHgi05S4x+p9Y+zXk9KUFMCnRYPKWiISv4Zu6ZHQ/Yg4HEud0vvyXhYh6+AbCgHpTHBrkstqwlDompOefltBIjjDxZsWVl+/vhzoIMKWqTOtNRIi+oz9ftMZ8=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1706818483; cv=none; b=bSGqEdnAiRKWus1qCCtnWm6xYSion95HKBenIC0rSlepQsY7unPqlAknZ5z9AEN7Jm3YRLrnKolCuMOngW+8ZzVjqGIQibRuQurQdrpNmCvI9q1mrT/atwbDEqVPtW0UCnpZA8DgGFRKlWDs5SX+pSy8JF/78EjoQj7+aeBGZkiMZBX2OMVNt5eOC/4LStCJlxko/Z7gTU7uDn5PNapT/My19pTU422+Ucg3zEGvEyZSLCXNrBtevmpIVv65XXCmILM4pjWKc7I6pvmoMY73K0l6HprTC6pVRFYFPajIY43OlUZeIZRtLKrPBlh/nt0QJbb5wBp7s0kqi99B7tL/OWjC50Gs4MpqQxBT4Wf+tUVOnjaa+je8Xy+lkMgXw0yZEiwJqh2wXvnudjewvp5iIuaBumZzda33mc4Hylrw0DgWtu1go4TGR2MN1ugVmG6GAIZWnuGCUfebnD+aZd2p937cBfuFvrrgZAY2Q0uc9yXUmbSJOC8GocRNvzOtvQnvVniRXh6Mra7UO43MhkwaujXeDdsCch/xgCDue08qP8zFq8602j0ed3Rfx3fUha7B01nVGzmXMcIDSuoVWpz/AYwpl64u+CrzWstcDfyMSXO13GV9MkZcwXm7SVuX8sc3JZxVaKxedyu3qr2P6fTgK6xRquBw9WYKYjQ6zbtW2f8=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Delivery-date: Thu, 01 Feb 2024 21:14:46 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1706818483; bh=bdUwfrfuLTMgjpf45ydyw3naSn9+L6TIk9dfDYr2ydU=; h=Date:From:To:Subject:References:In-Reply-To:From; b=RAXCl4zjnyov64QU/VD0fFMIJ77OKZJ+FrOotYD7J0we3yUlSj3epR1JeQyWNqJKA WRuR6eDkejkfdsSwWn4zj6CV9l3zM4Oi3C7uBL1Ctz2FHgpMljRIumhm/614JkbUM4 4eNjH9hrUvWy/j51jkAvoH3kNhOmnWhVn3Iuj0lMobuQzchJxFKTAPKdBVPBRo1ob6 t40v2K+0C9H4ZoVNCryFz8Yl77wMWgz+sc9qrkXStZjrS9+39R3uHPyzVORh9JRer6 UUCX2gAdH/guVOtVE2poKPc7CdrNdwd6exx3h0/spRPwXKS7SPZp7QORRQmQIZ20AO P9SZtWSZyutCIFamXxq1kwvzYjkVUoaMDKPCHI7uiAwDDgAGEMs0AmPeaZD6DE8vf5 ot6f+yjpfx7WRSWXfJgSA437eM50p552WhVE1aeXYxHlorKQswP8+A6MFlWVcQrcQH qa8lLlY+chrDtZCC2bjZHewY+e5NGZC3mZwK1C3dnVwNyj62SAwOTloA7nh6qow4dZ iCEkk/S+7zjQWLP6hQVbqVNmrlakq9vTevHWysCT3Iu99WasoVsB4m0N6gqW+snM5H J2OGd9EbKbfM4VZVCIImf8w41J67oC5kdvKiKRjEs7Q5y+jQ46fFOUIBwgXJNLbZjJ dOLQ7viB4RqUFsiLDnizo08Q=
- In-reply-to: <eea41fa1-7ed8-442c-a395-17a3cc7dcb47@isolution.nl>
- Mail-followup-to: pari-users@pari.math.u-bordeaux.fr
- References: <eea41fa1-7ed8-442c-a395-17a3cc7dcb47@isolution.nl>
On Thu, Feb 01, 2024 at 09:08:00PM +0100, Ruud H.G. van Tol wrote:
>
> I'm adding
>
> a(n) = #primes([n^2/4, (n+1)^2/4]);
>
> to https://oeis.org/A220492
>
> and was wondering if primepi() should grow a primepi([x1, x2])variant,
> to return the number of primes p, x1 <= p <= x2.
just do primepi(floor(x2))- primepi(ceil(x1)-1) or something ?
PS: I have vague plans to rewrite primepi to be faster....
Cheers,
Bill