Quote/ Thanks, i have downloaded the source code of prime95 and there is a function torture test, i want to know how memory is tested there means involving mersenne prime and lucas-lehmer test. End quote.
You need not concern yourself with lucas-lehmer testing which is a primality test for determining if a Mersenne number is prime.
Just run the torture test and check the box for Blend test which uses lots of RAM.