Let be an odd prime and be a primitive pth root of unity over . The Galois group of over is a cyclic group of order . The integral group ring contains the Stickelberger ideal which annihilates the ideal class group of . In this paper we investigate the parameters of cyclic codes obtained as reductions of modulo primes which we call Stickelberger codes. In particular, we show that the dimension of is related to the index of irregularity of p, i.e., the number of Bernoulli numbers , , which are divisible by . We then develop methods to compute the generator polynomial of . This gives rise to a new algorithm for the computation of the index of irregularity of a prime. As an application we show that 20,001,301 is regular. This significantly improves a previous record of 8,388,019 on the largest explicitly known regular prime