How does a CIDR prefix work?
The number after the slash sets the number of network bits. A /24 leaves eight bits for addresses, giving 256 total addresses. For a typical broadcast subnet, the network and broadcast addresses are reserved. /31 point-to-point links and /32 host routes have special handling.