Which number should you put instead of the question mark?

Question: #567
23
17
31
12
If you’re eager to improve your memory and expand your knowledge of the world try Topmost Fact category!