Prime Number Using For Loops

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rpapaiof
    New Member
    • Oct 2006
    • 27

    #1

    Prime Number Using For Loops

    i try to solve this problem by div function but it's so long and hard ,any one know a short way please tell me
    it also has a limit which is entered by user for example prime number in range of 20 up to 40
  • apusateri
    New Member
    • Oct 2006
    • 27

    #2
    Originally posted by rpapaiof
    i try to solve this problem by div function but it's so long and hard ,any one know a short way please tell me
    it also has a limit which is entered by user for example prime number in range of 20 up to 40
    Could you be more specific on your problem, or post some of the code that you've tried in the past with the errors that you're encountering?

    Comment

    • Arvinder singh
      New Member
      • Oct 2006
      • 1

      #3
      please try to explain your problem.then i will be able to solve ur problem.

      Comment

      • rpapaiof
        New Member
        • Oct 2006
        • 27

        #4
        the program is followin:
        calculate and print all prime number which use range given by user (some limit)
        prime numbers are printed by ten values in 1 line and for each line 5 position is alocated.
        it also give such thing 2<=i<=p/2

        Comment

        Working...