I am the only prime number that is immediately followed by a positive perfect cube. Which number am I?
7
The number immediately following 7 is 8, which is 2 cubed. Algebraically, n^3 - 1 factors as (n - 1)(n^2 + n + 1). For this product to be prime, the factor (n - 1) must equal 1, meaning n = 2 and n^3 - 1 = 7.
About this riddle
Math riddles hide a calculation inside a short story. Pull out the numbers, work out what is being asked, and watch for a trick such as a unit change.
Difficulty: Medium. More like this: Math riddles with answers or try Target 24 for a different kind of puzzle.
More math riddles
Half of the 8 calendars on the table are taken away. How many calendars are left on the table?
A gift costs 12 dollars and you buy 3. How much do you spend?
There are 12 ghosts in a house and 5 float away. How many are left?
One party hat costs 5 dollars. How many dollars do 4 party hats cost?
Max has 7 students. Noah has twice as many. How many students do they have together?
Lily makes 2 rows of 2 clocks and adds 4 more at the end. How many clocks are there in all?

