It is shown that a cyclic code

of length

over GF

is the maximum distance separable if and only if either

is a prime, in which case

is equivalent, up to a coordinate permutation, to an extended Reed-Solomon code, or

is a trivial code of dimension

. Hence there exists a nontrivial cyclic extended Reed-Solomon code of length

over GF

if and only if

is a prime.