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.
Select[pts, PrimeQ[Apply[Times, #] + 1] &]? – J. M.'s missing motivation May 17 '17 at 13:35