print~~grep!$_[@N/$_]++,@N=1..<>