Find the sum of all positive integers b such that b^2=a^3+1, where a is a prime number.