1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
vladimir2022 [97]
3 years ago
12

A positive integer is called a perfect number if it is equal to the sum of all of its positive divisors, excluding itself. For e

xample, 6 is the first perfect number because 6 = 3 + 2 + 1. The next is 28 = 14 + 7 + 4 + 2 + 1. There are four perfect numbers less than 10,000. Write a program to find all these four numbers.
Computers and Technology
1 answer:
Ad libitum [116K]3 years ago
5 0

i = 1

while i < 10001:

   total = 0

   x = 1

   while x < i:

       if i % x == 0:

           total += x

       x+=1

   if total == i:

       print(str(i)+" is a perfect number")

   i += 1

When you run this code, you'll see that 6, 28, 496, and 8128 are all perfect numbers.

You might be interested in
A certain program takes 26.67 seconds to run on 3 processors and 16 s to run on 7 processors. Find the execution time on one pro
brilliants [131]

Answer:

The explanation for the question is listed in the section below on Explanation.

Explanation:

The time needed for a program to execute in 26.67 seconds on 3 processors. Time expected to run the program, therefore, should be as follows:

The time to run on one processor = \frac{26.67}{3} = 8.89 seconds.

The time needed for a program to execute in 26.67 seconds on 7 processors, should be:

Time = \frac{16}{7} = 2.2857 seconds.

Whenever the amount of processors increases the performance or speed should increase.

The time is taken in percentage = \frac{26.67}{16}×100% = 170 %

As the number of processors increases from 3 to 7, the time required according to each processor increases by 70%.

In one processor the execution time should be as follows:

26.67+(26.67×0.7) = 45.339

                              = 45 seconds

Therefore. the execution period for a single processor is about 45 seconds.

The work is performed in parallel, whereas the program is already being parallelized. The overall function ought to be shared between the processor. The time is shortened to around half. Hence the duration taken will be 8 seconds after parallelization.

Theoretical execution time would be Tp > T infinity.

Thus, T infinity<45

The theoretical processing interval on processor count P1/2 would therefore be less than 8 seconds. Because, the time required during parallelization was just that.

5 0
3 years ago
Select the correct answer from each drop-down menu. A company is recruiting for a web designer. What kind of candidate should th
prisoha [69]

Answer:a

Explanation:

8 0
3 years ago
Read 2 more answers
Design an algorithm to generate the sequence of positive integers (In increasing order) whose only prime divisors are 2 and 3.
Natasha2012 [34]

Answer:

es muy buena pero es muy difícil que ni yo pude entender

8 0
3 years ago
The definition of network is:
kondaur [170]

\text{Hello there!}

<u>Networks were originally used as a government weapon 61 years ago</u> to <u>communicate information</u> such as data and research. However, individual networks were eventually discontinued by the government and made open to the public to use for things such as PAN, LAN, MAN, WAN, SAN, and so on.

<u>Our internet today is capable of communicating with bilions of computers.</u> This is possible due to your modem using radio wave-like speeds to connect to your ISP. Your ISP then connects to a larger network, which is connecting to thousands of other networks. You see, <u>the internet is just a large network of networks that are connected through very fast radiowaves</u>. However, it is not just a single network being used anymore; it's thousands of them. The term, "internet" was used to describe this large selection of networks. In short, <u>B</u><u> would be incorrect. </u>

The worldwide web is a protocol used by the internet to connect to select websites favourably from whoever's using it. This obviously would not define the network, as this is something that's used by it. Furthermore, <u>A</u><u> would not be correct.</u>

As described already, the network was a selection of computers used to communicate information to each other. <u>C </u><u>would not be correct </u>as it states that there is only one computer being used.

\fbox{Therefore, D would be the correct answer.}

\rule{300}{1.5}

6 0
3 years ago
You have been hired to upgrade a network of 50 computers currently connected to 10 mbps hubs. this long-overdue upgrade is neces
Nonamiya [84]

It is suggested to use a wireless router and switches for the network. As there are only 50 computers, you can opt for a router and two 24-port network switches. The server and one computer can be connected to the router directly.

The other computers can be connected to the switches.

* If you have a broadband connection, connect your cable modem to the router using the Ethernet cable.

Place these two network devices in the location which can be accessed easily because all the workstations have to be connected to this point with the network cable.

or

If you would like to connect to the network wirelessly, the router should be in a center point so that all the workstations get a strong signal.

* If you are using a wired connection, conect the network switch into the open Ethernet ports on back of the router. This will give you additional ports.

* Now, run ethernet cables from each workstaion to the switch. From there, connect you wireless network to make sure that you get an internet connection.

If it is wired conection, ensure that you set the IP address in each workstation with the server setting.To do so:

Click Start ->Run or hold Windows+R,

Type ncpa.cpl

Control Panel window would appear.  

Click Network and Sharing Center.

Click Change adapter settings.

Click on the connection and click Properties.

Click Internet Protocol Version 4(TCP/IPv4)Properties.

You can either select --Obtain IP address automatically(where IP addresses are automatically assigned for each workstation)and select

Obtain DNS server address automatically.

or  

Select Use the following IP address (In this case, the IP and DNS information is provided by the Internet Service provider).

This would setup a network.

Please check the manual provided with the router to configure the router.

It is also suggested to ensure that you setup security for your router.

The reason for using routers as the main device is because routers are the smartest. Routers perform two important tasks:

DHCP and NAT

DHCP-Dynamic Host Configuration Protocol is the way dynamic IP addresses are assigned.

NAT- Network Address Translation is the way router translates IP addresses of packets across the Internet or the local boundary.

When switches are considered, it can be managed or unmanaged switches.Switches provide a more structured network.An managed switch can be accessed onsite or remotely and can be programmed by the manager.16 port managed switches are available from CISCO and Dell. An unmanaged switch can be used for home or smaller networks where 24-port switches can be used.

Each system would be individually connected to the network switch in the network, so that even if a single system fails, there would be no breakdown in the network.

8 0
3 years ago
Other questions:
  • Please help!
    10·1 answer
  • My computer have black spots and line
    7·2 answers
  • As you increase the speed of your car, the engine has to operate at higher and higher speeds in order to move the car along. If
    11·2 answers
  • If you want to access your files anywhere from almost any connected device, you should store your files on your ________.
    9·1 answer
  • Is a router on the local network that is used to deliver packets to a remote network?
    15·1 answer
  • Write a program that inputs a time from the console. The time should be in the format "HH:MM AM" or "HH:MM PM". Hours may be one
    6·1 answer
  • Unicode is a world standard to represent _________________
    10·1 answer
  • What method of technical drawing uses converging lines?
    7·1 answer
  • Brainliest For Tascake Because People Texted Before Tascake Could<br><br> Hurry Tascake
    13·2 answers
  • The ___________ method returns the length of an array.
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!