プレイ日記
MathPRG MathProgrammer
Using a simple program I quickly wrote, I'm trying to find the smallest possible number divisible by everything under 100! 360360 only works consecutively up to 16, but wow! 190 factors!
3そうだね
プレイ済み
返信[1]
親投稿
MathPRG MathProgrammer
Maybe I should just modify the code to try with every multiple of 990, which is divisible by 2,3,5,6,9,10,99, and a few others. 990 is the smallest number divisible by 99 and 10, so this should yield the smallest...
0そうだね
プレイ済み
返信[2]
親投稿
MSWS coolestkid123
Funny thing is... I made a program JUST like it. It is very impressive. (Made it in my first few days of coding) [7XEQ33KJ]
0そうだね
プレイ済み
返信[3]
親投稿
MSWS coolestkid123
(Proof that it works) The factors go by page. Also, my program might be including 360360 itself or 1, thats why it says one more than yours.
0そうだね
プレイ済み
返信[4]
親投稿
MathPRG MathProgrammer
Nice, the visuals are a lot more impressive. I wasn't trying to go all out with this, and yes it doesn't include 1 or itself because those aren't exactly factors are they? That's what makes 1,2,3,5, and 7 all prime numbers for example.
0そうだね
プレイ済み
返信[5]
親投稿
MathPRG MathProgrammer
I also was planning on making a way to see all the factors using a scroll-through list, also remember that there's no point in making it say a number is divisible by one number AND another, except to show what two must multiply. The number will occur later anyways. (360 is divisible by 2 and 180, but 180 would come up later anyways)
1そうだね
プレイ済み
返信[6]
親投稿
MathPRG MathProgrammer
Also, just a hint, some of those colors are very hard to see on that background! Might want to either make a slightly brighter background or use brighter colored text. You may miss some factors if it tells you the factors creating a new line each time, too.
0そうだね
プレイ済み
返信[7]
親投稿
MSWS coolestkid123
Thanks for the advice, like I said I made it just for fun near my begining days.
0そうだね
プレイ済み
返信[8]
親投稿
MathPRG MathProgrammer
Yep. I tried making the program automatically test a bunch of numbers for divisibility by all under 100, but it made it to 75,000,000 and still got nothing!
0そうだね
プレイ済み
返信[9]
親投稿
MSWS coolestkid123
Hmm, do RND(98)+2 because the program automatically changes it if the number is < 2 or > than like 9999999.
0そうだね
プレイ済み
返信[10]
親投稿
MSWS coolestkid123
Responding to your previous post, a composite number is a positive integer that can be formed by multiplying 2 smaller positive integer. It also has one divisor OTHER than 1 and itself. Basically, you should include 1 and the number because they are factors.
0そうだね
プレイ済み
返信[11]
親投稿
MathPRG MathProgrammer
Also, the number I'm going for has to follow these rules: -It ends in 0, making it divisible by 2, 5, and 10. -The two digits before the zero will form a number divisible by 4, resulting in it being divisible by 4, 8, 20, and 40. -The sum of the digits is 9, making it divisible by 3, 6, 9, and 18. (6 and 18 because it's even)
0そうだね
プレイ済み
返信[12]
親投稿
MathPRG MathProgrammer
I tried to program this in C just a minute ago, but it seems my compiler isn't working properly. It asked me over and over to compile the source again, thinking it wasn't already compiled. It only stopped when I clicked don't compile again... Oh well, I'll try again soon! ;)
0そうだね
プレイ済み
返信[13]
親投稿
Caleb caleb.devontx
You should use that to solve the google billboard challenge I've already solved q1 using a java program i made that does pretty much the same thing as that
0そうだね
プレイ済み
返信[14]
親投稿
MathPRG MathProgrammer
Nice, I'm in the process of finding factorials without computer assistance because... why not? I'll write a program though to find Euler's number just as a test of my skills... Is the second question still out there? Supposedly the resulting link was taken down...
0そうだね
プレイ済み
返信[15]
親投稿
MSWS coolestkid123
I wrote a simple program to get the numbers that match those criteria! (Ends in 0, 2 didgits before 0 make a number divisible by 4, and sum of didgits is 9)
0そうだね
プレイ済み
返信[16]
親投稿
MSWS coolestkid123
Whoops, there was an error in the program. Fixed it now.
0そうだね
プレイ済み
返信[17]
親投稿
MSWS coolestkid123
Again, there was an error in the previous code.
0そうだね
プレイ済み
返信[18]
親投稿
MathPRG MathProgrammer
Im calculating that number by paper now using the prime factors of all the numbers. The answer will already be over a trillion though. The smallest number divisible by all will be huge!
0そうだね
プレイ済み
返信[19]
親投稿
Caleb caleb.devontx
I wouldn't have enough patience to do that on paper. You are extremely patient. Also I don't know if the second one has been taken down yet, I am still in the process of solving it
0そうだね
プレイ済み
返信[20]
親投稿
MathPRG MathProgrammer
What's the question?
0そうだね
プレイ済み
返信[21]
親投稿
Caleb caleb.devontx
The first question is {the firsrt ten digit number found in consecutive digits of e}.com. And the second question is: f(1)=7182818284 f(2)=8182845904 f(3)=8747135266 f(4)=7427466391 f(5)=______________
0そうだね
プレイ済み
返信[22]
親投稿
MathPRG MathProgrammer
Strange...
0そうだね
プレイ済み
返信[23]
親投稿
MSWS coolestkid123
Just a btw, botn of those questions are solved.
0そうだね
プレイ済み
返信[24]
親投稿
MathPRG MathProgrammer
Looks like this number divisible by everything to 100 will have at least 40 digits, then I'll make a program with C to verify its the smallest one possible once I multiply the numbers together. I have to multiply a 26 digit number by a 15 digit one!
0そうだね
プレイ済み
返信[25]
親投稿
MathPRG MathProgrammer
Hmmmm... I think my TI-83 may be messing up the results because of the size of the number, but according to the factor finder program I made, 950511799137600 has all the numbers under 100 as it's factors? I'll have to verify that though.
0そうだね
プレイ済み
返信[26]
親投稿
MathPRG MathProgrammer
Its not it's!
0そうだね
プレイ済み
返信[27]
親投稿
MathPRG MathProgrammer
According to my phone's calculator, that number is not wholly divisible by 11 already. So it looks like I still have to multiply those numbers!
0そうだね
プレイ済み