Write a program that outputs the first n Ramanujan numbers: integers that are a sum of two positive cubes in at least two different ways, such as 1729.
Unlock detailed company stats for this questionUpgrade
Write a program that outputs the first n Ramanujan numbers, that is, the integers that can be written as a sum of two positive cubes in at least two different ways (1729 = 1^3 + 12^3 = 9^3 + 10^3 is the first).
Community answers
No answers contributed by the community yet.
Related questions
Count the ways to write a given positive integer as a sum of at least two consecutive positive integers (for 21 the answer is 3, for 250 it is 3).Given an array of integers and a number N, find the length of the longest contiguous subarray such that the difference between any two elements in the subarray is less than N.Related courses

Course

Course