Help to understand what this means

prime and composite numbers

Page 1 of 1

1 Replies - 691 Views - Last Post: 24 November 2010 - 09:49 PM Rate Topic: -----

#1 dmm83   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 24-November 10

Help to understand what this means

Posted 24 November 2010 - 09:18 PM

If the number inputed by the user is a prime number then the program will output something similar to this


Enter An Integer: 13
Your number 13 is a prime number

If the number is a composite number then the program's output will be something like this


Enter An Integer: 24
Your number 24 is a composite number.
It's factors are 2, 3, 4 ,6, 8, 12


or even a tutorial to understand will be appreciated

This post has been edited by dmm83: 24 November 2010 - 09:20 PM

Is This A Good Question/Topic? 0
  • +

Replies To: Help to understand what this means

#2 shad0wk1   User is offline

  • D.I.C Head

Reputation: 31
  • View blog
  • Posts: 139
  • Joined: 01-October 10

Re: Help to understand what this means

Posted 24 November 2010 - 09:49 PM

http://www.mathsisfu...ite-number.html

When a number can be divided up evenly it is a Composite Number
When a number can not be divided up evenly it is a Prime Number. Therefore, Composite Number have factors other than itself and 1. Try read about it first and see what you can get using your creative mind.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1