Intro -
I am an electrical major. Having said that, my school has a pilot program this year that I was randomly selected for, that includes introduction to C# in the program. I am not very familiar with programming at all but I must admit, I have made decent progress in this class using the tutorial textbook.
Problem -
I have been assigned to create a program, that generates the prime numbers 2 - 102 (100 numbers). We have been instructed to use the The Sieve of Eratosthenes. In addition, there must be 100 buttons placed on a form, that will be labled 2, 3, 4, ... 102. When the "Run" button is clicked, it will begin to find primes. When the prime number generator finds a prime, the button with the same label is to be disabled (grayed out). This is the issue I am having the most problem with. I don't even know where to start, somehow you must be able to associate the output of the generator to the button names? Can someone help/point me in the right direction? I know that this involves using arrays but im so lost as to how to do it.... any help is MUCHOOO appreciated. Thanks!