for$i(2..127){if((N x$i)!~/^(NN+)\1+$/){for$b(@x){$b<$_&&($v=$_*$b*$i)<763&&push@_,$v.$/for@x}push@x,$i}}print sort{$a<=>$b}@_;