Ritalin, prescribed to children with attention deficit hyperactivity disorder, is sometimes used by healthy people to enhance their mental performance. Modafinil, a drug developed to treat narcolepsy, has been shown to reduce impulsiveness and help people focus on problems.