Affluent Savvy
Photo by Ann H Pexels Logo Photo: Ann H

What are the factors of 2305843008139952128?

The factors of 2305843008139952128 15188008747008, 32, 72057594004373504, 64, 36028797002186752, 128, 18014398501093376, 256, 9007199250546688, 512, 4503599625273344, 1024, 2251799812636672, 2048, 1125899906318336, 4096, 562949953159168, 8192, 281474976579584, 16384, 140737488289792, 1, 2, ...

What zodiac is Draco Malfoy?
What zodiac is Draco Malfoy?

Gemini Draco was a Gemini Draco's birthday was 5 June, making him a Gemini in the zodiac. Jun 4, 2018

Read More »
Is it worth retiring at 55?
Is it worth retiring at 55?

Retiring at 55 is a real possibility for some people. To retire at 55 is a goal that many people share, it allows you to enjoy life whilst you are...

Read More »
Awaken your dormant DNA ability to attract wealth effortlessly
Awaken your dormant DNA ability to attract wealth effortlessly

The simple yet scientifically proven Wealth DNA method laid out in the report allows you to effortlessly start attracting the wealth and abundance you deserve.

Learn More »

A mutlithreaded C program to determine if the user's input is a perfect number. Please note that this program uses a Unix system call. It will not compile on a Windows system.

Command

To run the program, compile the C program and then execute it as follows:

./perfect 100 10

Where 100 is the potential perfect number that the process should test and ten is the number of threads the process should create.

Timing

The effiency of most programs are improved by adding multithread capabilities. This program is no different. As we increase the number of threads by a power of two, the amount of time the program uses the CPU decreases by approximately a power of two. This suggests that there is a linear relation between number of threads and time to verify perfect number status. This pattern breaks down once the number of threads generated reaches the number of threads a given computer's CPU possesses. In the example times below, it is apparent that going from 8 to 16 threads produce a far smaller time decrease than going from 1 to 2 threads, 2 to 4 threads, and 4 to 8 threads each produce. This is unsuprising given that the output is from a computer with 6 CPU cores, each of which has 2 threads. Because of its CPU, this computer can only concurrently run 12 threads. Any decrease in time past that number (in this case a decrease of 0.383 seconds) is most likely caused by an increase in the likehood of a thread being scheduled In order to test the timing of this program, I ran the following commands: time ./perfect 2305843008139952128 1 time ./perfect 2305843008139952128 2 time ./perfect 2305843008139952128 4 time ./perfect 2305843008139952128 8 time ./perfect 2305843008139952128 16

Each of these commands produced the following result:

The factors of 2305843008139952128 are 16, 144115188008747008, 32, 72057594004373504, 64, 36028797002186752, 128, 18014398501093376, 256, 9007199250546688, 512, 4503599625273344, 1024, 2251799812636672, 2048, 1125899906318336, 4096, 562949953159168, 8192, 281474976579584, 16384, 140737488289792, 1, 2, 1152921504069976064, 32768, 70368744144896, 4, 576460752034988032, 65536, 35184372072448, 8, 288230376017494016, 131072, 17592186036224, 262144, 8796093018112, 524288, 4398046509056, 1048576, 2199023254528, 2097152, 1099511627264, 4194304, 549755813632, 8388608, 274877906816, 16777216, 137438953408, 33554432, 68719476704, 67108864, 34359738352, 134217728, 17179869176, 268435456, 8589934588, 536870912, 4294967294, 1073741824, and 2147483647. 2305843008139952128 is a perfect number. This result returned in varying times according to how many threads were used. The details of timing and system usage are as follows:

How do you build wealth in your 40s from nothing?
How do you build wealth in your 40s from nothing?

Your 40s are the ideal time to begin building wealth. ... 9 ways to build wealth in your 40s Increase your mortgage payments. ... Pay off debt now....

Read More »
How can I make extra money in 2022?
How can I make extra money in 2022?

Ways to Make Money on the Side Get paid for your photos. Are you a shutterbug? ... Drive for Uber or Lyft. ... Become a food delivery driver. ......

Read More »

Does seeing 1212 mean anything?
Does seeing 1212 mean anything?

According to numerology, this specific repeating number means that your guardian angel is letting you know to pay close attention to what is going...

Read More »
Do spiders like hot or cold rooms?
Do spiders like hot or cold rooms?

Spiders are not attracted to heat and can live quite comfortably in a wide temperature range. Most spiders prefer temperatures hovering around 70...

Read More »
Awaken your dormant DNA ability to attract wealth effortlessly
Awaken your dormant DNA ability to attract wealth effortlessly

The simple yet scientifically proven Wealth DNA method laid out in the report allows you to effortlessly start attracting the wealth and abundance you deserve.

Learn More »
Who is the youngest father on earth?
Who is the youngest father on earth?

World's youngest fathers on record The youngest father in the world is reportedly a boy from China, who, at 9 fathered a child with an 8-year-old...

Read More »
Awaken your dormant DNA ability to attract wealth effortlessly
Awaken your dormant DNA ability to attract wealth effortlessly

The simple yet scientifically proven Wealth DNA method laid out in the report allows you to effortlessly start attracting the wealth and abundance you deserve.

Learn More »
What is God's purpose for money?
What is God's purpose for money?

According to God's Word, there are four fundamental purposes for money: to provide for basic needs, to confirm direction, to give to those in need,...

Read More »