Hi Guys! I've been tackling these problems over the last little while. I got stuck on the is_prime problem but after a lot of thought and manual step through troubleshooting, I came up with a solution! It's not the most efficient and I know it can be improved, but I'm excited about having solved it without any external help =) Unfortunately, the solution seems to work fine on ideone.com but Code Academy gives me different results. Here is the code:
results =  def is_prime(x): if (x <= 1): return False; if (x == 2 or x == 3): return True; for n in range (2, (x-1)): results.append(x % n) if 0 in results: return False else: return True
So, when I run this in Ideone with is_prime(5), I'll get True with the resulting list printout. But for whatever reason, the same code copy/pasted into Code Academy gives me "Oops, try again. Your function fails on is_prime(5). It returns False when it should return True." I've stepped through manually with x = 5; I can't see what's wrong here. Please help?