hi
how r u?
i have solve to find out prime number. But i can not do this problem which is:

if i take a number. supose it is 40. the program will display 1-prime, 2-not prime,3-prime upto 40-prime. plz solve my problem.
thnk u. bye

Do you imagine you're the first person to ever ask this question?
Search the board, many (many) examples can be found.

plz solve my problem.
thnk u. bye

haha no thnk u bye

It seems this question -- exactly -- has been posted already.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.