find the sum of numbers which are perfect squares as well as perfect cubes and are less than 1000
23457
1346
65
794