The sequence of primes generated by a simple algorithm like the sieve of Eratosthenes is not itself simple. The plots in this Demonstration show various features of the sequence that indicate that it is in many respects quite random. The logarithmic integral is defined by and the function counts the number of primes up to .