"John D'Errico" <woodchips@rochester.rr.com> wrote in message <heenvk$f09$1@fred.mathworks.com>...
> "Jeff " <spREMOVEHITSjeffAT@SIGNoptonline.net> wrote in message <heemfb$9jn$1@fred.mathworks.com>...
> > For a school project, I need to find a list of Gaussian primes. These are primes of the form 4n+1 (so I'm told).
> >
> > I can generate a list of primes using primes(n), and it's easy enough to generate a list of integers of the form 4n+1.
> >
> > Is there a way to find the values which occur in both lists?
>
> What do you wish to do? Is this a set intersection
> problem? Perhaps this is time for you to learn
> about the lookfor function. So try this in matlab:
>
> lookfor intersection
>
> I'll bet it turns up something useful.
>
> John
Yes, I needed an intersection (for some reason I couldn't think of that word when posting). And the lookfor command was perfect for finding it. Thanks for the reply, John.
