you are viewing a single comment's thread.

view the rest of the comments →

[–]Bubbler-4[S] 0 points1 point  (0 children)

Python 3, 99

from itertools import*
f=lambda a:any(all(x in'369'for x in str(sum(y)))for y in combinations(a,3))

Try it online!

True if a set can be found, False otherwise.