Charles Greathouse on Sat, 15 Sep 2012 09:40:57 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: forprime


I typically write

p=3; forprime(q=5, lim, for(n=p+1, q-1, /* your code here */); p=q)

Charles Greathouse
Analyst/Programmer
Case Western Reserve University

On Sat, Sep 15, 2012 at 3:36 AM,  <michel.marcus@free.fr> wrote:
> Hi,
>
> forprime loops over prime numbers.
>
> is there a  function that would loop over composite numbers ?
>
>
>
> Thanks and regards.
>
> Michel