SharePoint 2013 doesn’t support Windows Server 2012 R2 or newer, unless you install SharePoint 2013 With Service Pack 1.
So do you the favor and download SharePoint 2013 With Service Pack 1 if you wanne use Windows Server 2012 R2 or Windows Server Technical Preview.
If you try or have, like me, downloaded without SP1 it will not pass the install prereqs:
The log will present:
Options for further diagnostics:
1. Look up the return code value
2. Download the prerequisite manually and verify size downloaded by the prerequisite installer.
3. Install the prerequisite manually from the given location without any command line options.