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.