I got this code to solve problem 500 in euler project. I was managing to figure out what they mean but got stuck in translating the tilde (~). It seems tilde has no specific meaning and when I change the code to Tilde[Times[#1, #2],Mod,500500507]&, which should be an equivalent definition, it does not work. Could anyone give a hint? Thanks.
Fold[Times[#1, #2]~Mod~500500507 &, 1, (Sort@
Flatten@(NestWhileList[#^2 &, Prime@#, # < 10^7 &] & /@
Range@PrimePi@(10^7)))[[1 ;; 500500]]]
F1for help. – Bob Hanlon Oct 20 '21 at 17:29