I'm going to assume you mean the popular bootable memtest86 and memtest86+ although there is an obscure win32 program called "memtest"
memtest86 works with UEFI or BIOS and has worked with >4GB memory since 2002, 15 years ago.
memtest86+ does not work with UEFI unless you set it to "Legacy Boot" BIOS mode and then has a known issue with test #7 generating false positives with DDR4.
All memory testing programs test memory differently so e.g. you could have no errors in these bootable tests but fail Prime95 and it's a good idea to use more than one. Failing any one of them means your memory is not stable at its current settings so if any program accesses the memory the same way it will crash.