Q24 Ramanujan number is the smallest number that can be expressed as sum of two cubes in two different ways. Write a program to print all such numbers up to a reasonable limit.

Program: 117

Ramanujan number is the smallest number that can be expressed as sum of two cubes in two different ways. Write a c program to print all such numbers up to a reasonable limit.

The Smallest Ramanujan Number is1729

Output:

1729
4104
13832
20683

Lokesh Kumar

Being EASTER SCIENCE's founder, Lokesh Kumar wants to share his knowledge and ideas. His motive is "We assist you to choose the best", He believes in different thinking.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.