Osemeka Osuagwu wrote: > templist = templist.append(prime) The append method operates in place, and returns None. It doesn't return a list: py> mylist = [] py> x = mylist.append(42) py> x is None True py> mylist [42] Replace that line with just templist.append(prime) -- Steven