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, 23.06.2019 05:00
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
Lakendra finished working on her monthly report. in looking it over, she saw that it had large blocks of white space. what steps could lakendra take to reduce the amount of white space?
Answers: 3
question
Computers and Technology, 24.06.2019 02:10
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
Answers: 2
question
Computers and Technology, 24.06.2019 14:30
Ahousehold consists of a married couple and their twin five-year old daughters. the couples children had no income and lived with their parents all of last year. how many exemptions can the couple claim on last years tax return or they file with the β€œ married filing jointly β€œ status? a. 4 b. 5 c. 3 d. 2
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, 30.09.2019 15:00
question
Mathematics, 30.09.2019 15:00
question
English, 30.09.2019 15:00
question
Mathematics, 30.09.2019 15:00
question
Social Studies, 30.09.2019 15:00
question
Social Studies, 30.09.2019 15:00
Questions on the website: 13722361