Really when you think of it, anyone asking if 0 is a prime number deserves
all they get. :-)

@ Henry -could we have a stdlib verb (or a new Foreign) to verify the
integrity of all cached numeric nouns? Maybe even reinstate them, to save
having to restart J repeatedly? Or just tell us where they're listed, in
either jsource or the test suite. I knew i.n was cached for low values of
n, but not 0.

On Sat, 26 Feb 2022 at 14:18, Henry Rich <[email protected]> wrote:

> This is the Mother Of All Bugs.
>
>     0
> 0
>     0 p: 0
> 1
>     0
> 1
>
> I have fixed the source, but I am in the middle of something & it might
> not go out in the next beta.
>
> Henry Rich
>
> On 2/26/2022 12:44 AM, Elijah Stone wrote:
> > I can consistently reproduce this by running 0 p: 0, cf:
> >
> >    0 p: 0
> > 1
> >    (0&p: -: 1&p:) i.1e6
> > 1
> >
> > (new session)
> >
> >    (0&p: -: 1&p:) i.1e6
> > 0
> >
> > I would guess maybe there is some cache somewhere, and 0 is messing it
> > up?
> >
> >  -E
> >
> > On Fri, 25 Feb 2022, Raul Miller wrote:
> >
> >> https://www.jsoftware.com/help/dictionary/dpco.htm
> >> or https://code.jsoftware.com/wiki/Vocabulary/pco
> >>
> >> 0 p: y is supposed to be -. 1 p: y
> >>
> >> But, currently (j903), 0 p: y is the same as 1 p: y
> >>
> >> That said, I should perhaps note that I was looking for a "composite"
> >> test -- a concise way of expressing {{ (1 < y) * 0 = 1 p: y }}
> >>
> >> FYI,
> >>
> >> --
> >> Raul
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
>
> --
> This email has been checked for viruses by AVG.
> https://www.avg.com
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to