@AdrianCgw thanks, I always try before asking for help (several hours) but as I am reaching the end it gets more difficult, and I need you guys's help.
@Hinkle, your hints and posters are really helpful, thanks a lot !!!
I am having some trouble with my prime algorithm. It stores some numbers that aren't primes, as you can see in the screen print below :
here is the code :
traps = self.findByType("fire-trap")
trapsIndex = 0
primesIndex = 0
primes = 
for trap in traps:
for i in range (2,Math.ceil(Math.sqrt(trap.value))):
if trap.value % i == 0:
self.say("not a prime")
I can't find what's wrong, I tried to edit the result of 625 % 5 and it sorted =0 as it should. But it seems like the algorithm doesn't see it that way. Any Idea ?