Checkpointing work on prime factoring
Added a function for printing a list as string