solved PerfectSquares and PopulationSim