Chao wrote: > My Bad, the time used by python is 0.46~0.49 sec, > I tried xrange, but it doesn't make things better. Actually it does: it doesn't waste time and space to create a big list. -- Roberto Bonvallet