Ulam Spiral Prime Numbers
Posted: Tue Oct 01, 2013 7:48 am
Is there a limit to the number of points you can set in a graphic object?
Or perhaps you can't have more than 380000x2 lines in a variable?
I find that once I exceed around 380000 points that it forgets the first 380000 and continues drawing from there leaving a black square in the middle. Also if I show the progress bar updating as it goes through each loop it adds 10x the length of time for it to complete the function.
I've tried using the "select brush" and "drag from point to point" method for each dot but drawing pixels on the screen takes phenomenally long in live code and "select pencil" and "click at loc" takes even longer.
Anyway here is my stack. It makes a pretty ulam spiral of prime numbers
Or perhaps you can't have more than 380000x2 lines in a variable?
I find that once I exceed around 380000 points that it forgets the first 380000 and continues drawing from there leaving a black square in the middle. Also if I show the progress bar updating as it goes through each loop it adds 10x the length of time for it to complete the function.
I've tried using the "select brush" and "drag from point to point" method for each dot but drawing pixels on the screen takes phenomenally long in live code and "select pencil" and "click at loc" takes even longer.
Anyway here is my stack. It makes a pretty ulam spiral of prime numbers