answersLogoWhite

0

How is 115 composite?

User Avatar

Anonymous

12y ago
Updated: 8/20/2019

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 ###

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the composite of 115?

115 is the only composite factor of 115.


What are the factors of 115 in composite?

115 is the only composite factor of 115.


Is 115 composite or a prime number?

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.


Is 115 prime or composite?

composite


What is the composite product of 115?

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.


Is 115 composite?

115 ends in 5 which means it is divisible by 5. That makes it composite.


Is 115 a prime or composite?

115 is clearly prime since it ends in 5, therefore making it divisible by 5 and composite.


Is 115 and 284 composite or prime?

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.


Is 115 prime number?

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 composite numbers in the world?

all the compounds in the world are either 50 70 115 150


What are the first ten consecutive composite numbers?

The first ten consecutive composite positive integers are: 114 115 116 117 118 119 120 121 122 123


What is a composite number that has a factor of 23 and 5?

For 23 and 5: 115 For 2, 3 and 5: 30