answersLogoWhite

0

In general, it is not possible. Composite and primes can be infinitely large and finding possible factors or proving that there are none is not always possible.

User Avatar

Wiki User

8y ago

What else can I help you with?

Related Questions

Is one composite or prime both prime and composite or neither prime or composite?

neither prime or composite


Is 17 prime or composite number?

It is prime


What is a list of prime numbers and composite numbers?

It would be impossible to list them all, since numbers go on forever, but here are some of them: 2 - Prime 3 - Prime 4 - Composite 5 - Prime 6 - Composite 7 - Prime 8 - Composite 9 - Composite 10 - Composite 11 - Prime 12 - Composite 13 - Prime 14 - Composite 15 - Composite 16 - Composite 17 - Prime 18 - Composite 19 - Prime 20 - Composite 21 - Composite 22 - Composite 23 - Prime 24 - Composite 25 - Composite 26 - Composite 27 - Composite 28 - Composite 29 - Prime 30 - Composite 31 - Prime 32 - Composite 33 - Composite 34 - Composite 35 - Composite 36 - Composite 37 - Prime 38 - Composite 39 - Composite 40 - Composite 41 - Prime 42 - Composite 43 - Prime 44 - Composite 45 - Composite 46 - Composite 47 - Prime 48 - Composite 49 - Composite 50 - Composite


How do you write a BASIC program to display whether the input number is prime or composite?

To write a BASIC program that checks if an input number is prime or composite, you can use a loop to test divisibility. First, prompt the user for a number and then check if it's less than 2 (which is neither prime nor composite). For numbers greater than 1, iterate from 2 to the square root of the number, checking if it divides evenly (using the modulus operator). If you find a divisor, the number is composite; otherwise, it's prime. Here's a simple example: INPUT "Enter a number: ", N IF N < 2 THEN PRINT "Neither prime nor composite": END IS_PRIME = TRUE FOR I = 2 TO SQR(N) IF N MOD I = 0 THEN IS_PRIME = FALSE EXIT FOR END IF NEXT I IF IS_PRIME THEN PRINT N; " is prime" ELSE PRINT N; " is composite"


Is 4 and 67 prime and composite?

4, composite. 67, prime.


Is nine a prime or a composite?

Prime


Which numbers are prime numbers and which are composite numbers from 1 to 100?

1 is special 2 prime 3 prime 4 composite 5 prime 6 composite 7 prime 8 composite 9 composite 10 composite 11 prime 12 composite ext.


Is 5 and 25 prime or composite?

5 prime, 25 composite.


A program to find that the input number is prime or not?

Use Wolfram|Alpha... go to the related link below, Wolfram|Alpha, and type in (is __ (number) prime) and then the program will compute that and tell you if it is prime or composite.


Is 2401 a prime or composite number?

composite


Is 9750 prime or composite?

no 9750 is not composite it is prime


Is 1 not prime or composite?

One is not prime and not composite.