Search a number
nialpdrome  and  partition n.

First numbers that belong to both sets:

1, 2, 3, 5, 7, 11, 22, 30, 42, 77.