An algorithm is devised for computing Φ(n)=φ(1)+φ(2)+⋯+φ(n) in time Θ(n2/3) and space Θ(n1/3). The starting point is an existing algorithm based on the Dirichlet hyperbola method and the Mertens function. The algorithm is then used to compute Φ(1019)=30396355092701331435065976498046398788.