Thread: Help - prime numbers .

  1. #1
    Registered User
    Join Date
    Apr 2017
    Posts
    2

    Help - prime numbers .

    Can some help me with a function which receive integer from user
    and check if integer can be expressed by multiplication of two prime numbers (integer is > 1 ) .

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,666
    So what have you managed to do so far?

    - prompt the user for a number
    - write a function which gives you prime numbers
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 12-02-2014, 10:11 AM
  2. Replies: 18
    Last Post: 03-30-2014, 06:30 AM
  3. Replies: 7
    Last Post: 01-09-2013, 07:41 PM
  4. Replies: 1
    Last Post: 03-16-2012, 02:07 AM
  5. non prime numbers or composite numbers program.help plz!
    By danishzaidi in forum C Programming
    Replies: 10
    Last Post: 11-15-2011, 11:10 AM

Tags for this Thread