Hello,

I am suppose to write a program using if statements and loops: Create an application that reads an integer number from the user and then displays in the List Box all prime numbers(for this project we are going to violate “positive” rule and make our prime numbers be negative as well) between user’s number and zero 5 numbers in one row. The application also displays how many prime numbers there are between user’s number and zero, and the total sum of all these prime numbers. I have no code to post because I can't figure out how to even start the program.

Thank you.

# vb.net Prime Numbers

Page 1 of 1## 1 Replies - 5865 Views - Last Post: 13 March 2010 - 11:38 AM

##
**Replies To:** vb.net Prime Numbers

### #2

## Re: vb.net Prime Numbers

Posted 13 March 2010 - 11:38 AM

start by trying to break down the program into simple task on a piece of paper. Then workout how you would accomplish the tasks. Seeing as it is mainly about primes I would start by trying to find out how to identify a prime number and work backwards from there.

Page 1 of 1