Be 3 fast

A A is the product of the first 100 prime numbers. B = 100 ! B=100! .

Find the number of trailing zeroes of A + B A+B .


The answer is 1.0000.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Maggie Miller
Aug 11, 2015

Note B B has more than one trailing zero (from the factors of 10,20) but A A has exactly one trailing zero (from the factors of 2 , 5 2,5 ; since the other factors are prime they cannot be divisible by 2 2 or 5 5 ). Therefore, the sum A + B A+B has exactly 1 \boxed{1} trailing zero.

Nice solution and good approach.

Department 8 - 5 years, 10 months ago

A A has only one trailing zero, while B B has a lot of. The second step I took is realizing that B > A B>A , so A + B A+B has only one trailing zero.

Jack Bennett
Aug 11, 2015

The product of the first 100 primes is... 11 356 769 871 639 834 366 628 078 343 660 801 213 021 002 603 808 017 113 484 083 456 481 393 624 183 355 161 423 988 601 739 578 097 269 175 036 999 016 380 044 894 643 879 365 114 584 536 377 648 421 251 919 478 851 653 433 974 523 196 310 641 702 368 516 916 764 541 545 146 381 989 396 087 448 510

Take the last 3 digits (510) + 100 = 610 <- 1 Trailing Zero

why would you do it this way -_- If you had done this by hand you probably would've gotten this wrong... And they are asking for the sum of A and 100! not A and 100. smh

Alan Yan - 5 years, 10 months ago

question for you

let it not be 100 and let it be 10000000000000000000000000000000000000

Akash singh - 5 years, 9 months ago

Lol, was there any need of writing down all the primes. What if the question said product of 1st 1000000000 primes. Even then there would have been only 1 trailing zero but you couldn't have written down all of them.

Kushagra Sahni - 5 years, 10 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...