## Same Digit Prime

#### Problem

11 is the smallest prime made up of the same digit.

A number made up of the same digit is called a repunit.

Explain why a repunit can only be prime if the repeating digit is one AND the number of digits is itself prime; note that this is a necessary but not sufficient condition.

Problem ID: 256 (01 Jan 2006) Difficulty: 2 Star