Forum Discussion
Altera_Forum
Honored Contributor
17 years agoYou probably can find examples solving similar problems with HDL classes or text books. Without a need to optimize the operations particularly, you can try to code the algorithm as is - sequentially. This implies a state machine to control the processing steps, a register for the next number and a memory to flag the numbers that have been sieved out.