Skip to main content

Activity for theucgeneralist.bsky.social

Active on:

Loading activity...

~4.1 You want to count the number of factors of 10^18. Which, as we saw, is going to take about 317 years to finish. So how do we do it? #Java #Algorithms #DataStructures

Bluesky network6d ago

~3.1 The number of times the "for loop" executes here is equal to the input value, A. What that means is, if A is 10, the loop will execute 10 times. If A is 100, it will run 100 times and so on. Now this might not seem like a problem, but it can quickly become one.

Java code for counting the total number of factors of a given number. O[N].
Bluesky network7d ago

How do you count the number of factors of a given number? First, you start with the count being 0.

Java code for counting all the factors of a given number. O[N].
Bluesky network8d ago

A factor is a number that divides another evenly. The product is the result of multiplication. A common factor is a factor shared by two or more numbers. GCF is the largest factor shared by two numbers.

A factor is a number that divides another evenly. For example, 4 is a factor of 20.

The product is the result of multiplication. For example, 20 is the product of 4 and 5.

A common factor is a factor shared by two or more numbers. For example, 5 is a common factor of 10 and 20.

GCF is the largest factor shared by two numbers. For example, 10 is the GCF of 20 and 30.
Bluesky network8d ago

Hello, world!

Bluesky network8d ago