Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: problem with prime numbers

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default problem with prime numbers

    Hey gyus! i want help with a problem in java. i have to make a programme using 'for' loops to generate the prime numbers from 2 until a number 'N' which the user enter.and after that to count how many times the for loop happened.


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,732
    My Mood
    Mellow
    Thanks
    232
    Thanked 706 Times in 692 Posts

    Default Re: problem with prime numbers

    Welcome to the forum!

    Make an effort, have some code to share, and we'll help when you get stuck. Be sure to read the "Announcement" topic at the top of most of the sub-forums for pointers on how to post and get help.

Similar Threads

  1. [SOLVED] Confused on Prime numbers
    By JAKATAK in forum What's Wrong With My Code?
    Replies: 0
    Last Post: February 24th, 2013, 02:26 AM
  2. Need a more efficient algorithm for prime numbers.
    By firstTimeJava in forum Algorithms & Recursion
    Replies: 3
    Last Post: November 16th, 2012, 09:15 PM
  3. [METHOD] How: Count how many prime numbers there is between two numbers!
    By Secret20 in forum Object Oriented Programming
    Replies: 4
    Last Post: October 18th, 2011, 02:30 PM
  4. trying to generate prime numbers
    By yingyang69 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: February 28th, 2011, 11:21 AM
  5. prime numbers
    By tdz013 in forum Java Theory & Questions
    Replies: 4
    Last Post: January 13th, 2011, 10:24 AM