|
|
|||||
Topic, Question : | ||||||
| ||||||
You must register or log in to post a message.I can even put arrays into arrays(2D arrays), which is how games like P4M work(tiles) the second line edits a specific value in the list(the second one, its 1 because array positions start at 0 not 1) it would be "var primes:Array" Also what does the second line do? I dont understand it, necessarily use it for primes, [btw, go on chat] the prime finder? oh god will this lag, ive tried it using AS=lag :P [edit] if you have flash, use trace(), but for a list that size I wouldnt... use arrays: primes=[2,4,5,7] //this makes a list =5 // this fixes the intentional mistake I made(notice how its a 1 and not 0) =11 // this adds the next prime to the end now then, I would recommend working on the prime code itself, as by the look of it yours sucks(it goes up in 1s for checking) also, had a speed test idea, what finishes first? that counting the first 200 primes, or mine counting the first 25000? Please don't delete...:( |