Perfect Square and Perfect Cube

Computer Science Level 1

1 is the smallest positive integer that is both a perfect square and a perfect cube, write a program to find the sum of first n positive integers that are both Perfect Square AND Perfect Cube.

Find the sum of first 100 numbers, the sum is too long but don't worry, I just want the answer as mod of the actual number with 2015.


  • 1, 64, 729 . . . is the sequence of such numbers.

  • answer = sum mod 2015

this problem is a part of the set Fundamental Programming

Problem Loading...

Note Loading...

Set Loading...