subject
Computers and Technology, 12.11.2019 22:31 shey89

Write following program using python:

a positive integer greater than 1 is said to be prime if it has no divisors other than 1 and itself. a positive integer greater than 1 is composite if it is not prime.

write a program that asks the user to enter a integer greater than 1, then displays all of the prime numbers that are less than or equal to the number entered. last, create two files. one file will hold all of the prime numbers found. the other file will hold all of the composites found.

your program must maintain two lists. one for prime numbers and another for composite numbers. for every number found to be prime, add it to your prime list. for every number found to be composite, add it to your composite list.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:30
Alex’s family members live in different parts of the world. they would like to discuss the wedding plans of one of their distant relatives. however, alex wants all the family members to talk to each other simultaneously so that they can make decisions quickly. which mode of internet communication should they use? a. blog b. email c. wiki d. message board e. instant messaging
Answers: 2
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
question
Computers and Technology, 25.06.2019 00:30
Which type of cell references are locked and not automatically updated when it’s copied a)formula b)relative c)absolute d)worksheet
Answers: 1
You know the right answer?
Write following program using python:

a positive integer greater than 1 is said to be p...
Questions
question
Mathematics, 14.01.2020 01:31
question
Mathematics, 14.01.2020 01:31
Questions on the website: 13722363