Got stuck on the first one for awhile. Turned out that I had forgotten to reset my testdiv to 2 when it found a number that wasn't prime. So it would go through the first 30 primes just fine but then when it got to 31 it would start returning non-prime numbers because testdiv was starting out higher than the number that would divide testnum evenly.
Problem 2 took about 25 minutes. Just needed to change it from a count down to a test to make sure your testnum was less than the number in question, n in this case. The other change was to make sure that when the system found a prime number that it added that number to a variable that I called sumlogs. This variable starts with a value of log(2) to account for 2 being left out of the test.
Don't forget to make sure your variables are properly configured as integers or floats.