expand prime list; rewrite demo function