solve it by half BF, consider b must be prime, good
solve it by half BF, consider b must be prime, good

python27/AlgorithmSolution,python27/AlgorithmSolution,python27/AlgorithmSolution,python27/AlgorithmSolution,python27/AlgorithmSolution