Recognizing alternating groups Ap+3 for certain primes p by their orders and degree patterns