Skip to main content
100%

four variations of isprime for the first thousand integers, shuffled and rotated counts don't include original in their counts, but require it

✓ Published0🌍 Public
BBBischof
Last edited Jan 14, 2018
Created on Jan 14, 2018

Four variations of the `isprime` function for the first thousand integers are compared, showing how primality changes under digit shuffling, rotation, and reversal. The visualization plots each integer along the x-axis, with rows for the original prime status, the count of shuffled permutations that are prime, the count of rotated permutations that are prime, and whether the reversed digits are prime. The data comes from a CSV file processed with d3.js, using SVG elements to render the scatter-style chart. It highlights which primes remain prime under these digit transformations and which do not.

AI-generated description

Similar vizzes