main=mapM print[i|i<-l,and$f[j|j<-l,i`mod`j<1]] l=[1..500] f a=zipWith(<)a$scanl(+)2$a