Image:
 Author: CPJchute Group: Default Filesize: 15.82 kB Date added: 2024-03-21 Rating: 5 Downloads: 847 Views: 245 Comments: 7 Ratings: 1 Times favored: 0 Made with: Algodoo v2.1.0 Tags:
|
A bot that automatically generates 100% accurate primes through this check:
n = The number that is being tested on
depth = The search depth, higher depth is higher accuracy
Divide n by the first [depth(up to 95)] primes, and if any of those results return an integer, then return FALSE. Otherwise, return TRUE.
-------------
The problem is that:
At numbers very very very high(probably ~80k at depth 50) it starts generating false primes
Results:
Range 0 - 10k at depth 25
100% Accurate(except 1)
Checked - Number of primes found
Range 0 - 100k at depth 50
97% Accurate(except 1)
Checked - Number of primes found
-------------
How to use?
Simple - Set the range you want by changing the text on the boxes, and then set the depth the same way.
(edit): To see it running, press the "RESET" button(or go to the console). Then, when you wanna see the results, press the "STOP" button. To run it again, press the "RESET" button twice.
-------------
may also be laggy
ACS 2024/3/3 - 2024/3/21. Free to copy with credit to Algomatic Computer Systems. |
Last edited at 2024/03/22 16:39:19 by CPJchute
Please log in to rate this scene
|