A 36-year-old northern New York man has been sentenced to 15 years in state prison for raping a little girl starting when she was in first grade.