Here’s an even easier way, without resistors:
http://tonystrains.com/technews/tortoise/wiring-leds.htm