Any number that can only be divided equally by itself and 1 is a Prime number.
115 is a composite number because it can be divided by 1, 5, 23, and 115.
For a definition of "Composite Number" goto http://www.mathsisfun.com/definitions/composite-number.html
Make your own program to check if a number is PRIME or COMPOSITE.
Cut and Paste the script code below into a Notepad,
then select "File > Save As..." to save the program
(somewhere handy like your desktop).
Save with a "File name" : Prime_or_Composite.vbs
and a "Save as type" : All files (*.*)
'###############################################################
'## This VBScript checks if a number is PRIME or COMPOSITE. ##
'## Written for you by Scott Hatch ##
'###############################################################
aNumber = InputBox("Please enter a number to check if it " & vbCrLf & _
"is a PRIME or COMPOSITE number:" ,"Enter a number", 0 )
If IsNumeric(aNumber) Then
MsgBox "You entered the number " & """" & aNumber & """"
Else
MsgBox "The value you entered " & """" & aNumber & """" & " is not supported."
WScript.Quit(0)
End if
If IsNumeric(aNumber) Then
dim Result
Result = "PRIME"
For Counter = 2 to aNumber-1
If FormatNumber(aNumber/Counter,0)-(aNumber/Counter) = 0 Then
MsgBox aNumber & " can be divided equally by " & Counter
Result = "COMPOSITE"
End if
Next
MsgBox aNumber & " is a " & Result & " number."
End if
WScript.Quit(0)
'### END OF SCRIPT ###
115 is the only composite factor of 115.
115 is the only composite factor of 115.
115 is a composite number. This means it can be divided by other numbers besides 1 and itself. 115 can be divided by 1, 5, 23, and itself.115 is a composite number. It ends with 5 and is divisible by 5.
composite
The factors of 115 are 1, 5, 23, and 115. The composite product is obtained by multiplying the composite factors together, which in this case would be 5 and 23. Therefore, the composite product of 115 is 5 * 23 = 115.
115 ends in 5 which means it is divisible by 5. That makes it composite.
115 is clearly prime since it ends in 5, therefore making it divisible by 5 and composite.
A prime number has only 2 factors which are 1 and itself. Composite numbers are everything else except 1 and 0. 1 and 0 are neither prime, nor composite. Both 115 and 284 are composite.
A prime number has only 2 factors which are 1 and itself. Composite numbers are everything else except 1 and 0. 1 and 0 are neither prime, nor composite. 115 is composite.
all the compounds in the world are either 50 70 115 150
The first ten consecutive composite positive integers are: 114 115 116 117 118 119 120 121 122 123
For 23 and 5: 115 For 2, 3 and 5: 30