Problem 60661. The Prime Days of Christmas

On the first day of Christmas my true love sent to me partridges in a pear tree.
On the second day of Christmas my true love sent to me turtle doves, and partridges in a pear tree.
On the third day of Christmas my true love sent to me French hens, turtle doves, and partridges in a pear tree.
On the fourth day of Christmas my true love sent to me calling birds, French hens, turtle doves, and partridges in a pear tree.
On the fifth day of Christmas my true love sent to me golden rings, calling birds, French hens, turtle doves, and partridges in a pear tree.
And so on ...
denotes the i-th prime. Suppose that there are n days of Christmas. How many gifts am I receiving in total?

Solution Stats

45.0% Correct | 55.0% Incorrect
Last Solution submitted on Oct 28, 2024

Solution Comments

Show comments

Problem Recent Solvers9

Suggested Problems

More from this Author16

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!