Tag Archives: visualize prime numbers

Use a bitmap to visualize composite runs in C#

I promise this is my last post on primes for a while. (Sometimes one example leads to another, which leads to another, and so on.) This example draws a bitmap to help visualize composite runs and prime numbers. The basic … Continue reading

Posted in algorithms, graphics, image processing, mathematics | Tagged , , , , , , , , , , , , , | Leave a comment

Use a bitmap to visualize odd primes in C#

This example modifies the program in Use a bitmap to visualize primes in C# to let you visualize odd primes. It creates an is_prime array like the previous example does, but it makes the array twice as large as before. … Continue reading

Posted in algorithms, graphics, image processing, mathematics | Tagged , , , , , , , , , , , , , | 1 Comment

Use a bitmap to visualize primes in C#

This example makes a bitmap that helps you visualize primes. The example uses the techniques described in the post Use Euler’s Sieve to find prime numbers in C# to build a table of prime numbers. It then makes a bitmap … Continue reading

Posted in algorithms, graphics, image processing, mathematics | Tagged , , , , , , , , , , , , | 7 Comments