Potatoes that haven't been sprayed with chemicals to prolong their shelf life will develop sprouts as they mature, they also develop more flavour at this time. They're vital, living foods that are perfectly good to eat. Just break the sprouts off and cook as normal. However don't eat green potatoes.