Updates to Problem 2

--change p1 to alert from console.log
--change var names in p2
--rework logic in p2, still not working
--believe logic is sound, but crashes memory due to over-looping
--need to implement some sort of sieve or capture before looping again