I was able to implement it with 3M3 MΩ resistors. The problem is that the readanalog() function executes 10 reads. So the first one is the right value and then you will not measure the right value anymore.
Solution: A voltage divider with 2.5M5 MΩ and 500k500 kΩ with a 470nF470 nF capacitor on the 500k500 kΩ resistor. The solution with the mosfetMOSFET is better. This is easier, and it works (but only for 20 years 😜).