Skip to main content
formatting
Source Link
yohbs
  • 7.1k
  • 3
  • 29
  • 60

I understand how to make lists with the Select function and NestList, but these are only for one dimensional lists. Is it possible to make lists of all points that satisfy a constraint? For example, all points {x,y}{x,y} that satisfy PrimeQ[x*y+1]==True PrimeQ[x*y+1]==True.

Sorry if this is really amateur, I only recently started Mathematica and I'm trying to teach myself the functions.

I understand how to make lists with the Select function and NestList, but these are only for one dimensional lists. Is it possible to make lists of all points that satisfy a constraint? For example, all points {x,y} that satisfy PrimeQ[x*y+1]==True .

Sorry if this is really amateur, I only recently started Mathematica and I'm trying to teach myself the functions.

I understand how to make lists with the Select function and NestList, but these are only for one dimensional lists. Is it possible to make lists of all points that satisfy a constraint? For example, all points {x,y} that satisfy PrimeQ[x*y+1]==True.

Sorry if this is really amateur, I only recently started Mathematica and I'm trying to teach myself the functions.

Source Link
volcanrb
  • 373
  • 1
  • 7

How can I find a list of points that satisfy constraints?

I understand how to make lists with the Select function and NestList, but these are only for one dimensional lists. Is it possible to make lists of all points that satisfy a constraint? For example, all points {x,y} that satisfy PrimeQ[x*y+1]==True .

Sorry if this is really amateur, I only recently started Mathematica and I'm trying to teach myself the functions.