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

50.0% Correct | 50.0% Incorrect
Last Solution submitted on Dec 16, 2024

Solution Comments

Show comments

Problem Recent Solvers12

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!