This is an old revision of the document!
START TIMEKEEPING NUMBER: FROM 2 THROUGH UPPERBOUND: ISPRIME <- YES FACTOR: FROM 2 THROUGH NUMBER-1: SHOULD FACTOR DIVIDE EVENLY INTO NUMBER: ISPRIME <- NO PROCEED TO NEXT FACTOR SHOULD ISPRIME STILL BE YES: INCREMENT OUR PRIME TALLY PROCEED TO NEXT NUMBER STOP TIMEKEEPING
One way to calculate your runtime is by using the get_frame_counter() Vircon32 function. You will need to first store the start time (before you tally the prime numbers) and your end time (after you tally the prime numbers). Subtracting the start time from the end time will give you a value that you can use to find your runtime. The get_frame_counter() function obtains the current value of the frame counter. If you’d prefer, you could use get_time() or get_cycle_counter(). Just remember the runtime will need to be drawn in seconds with three decimal places for milliseconds.