Here script is to run the code under https://github.com/AlekseyMalyshev/perfcomp/tree/master/euler35, you need to clone this repository firslty. then copy the *.sh files to euler35/ to make sure they are in same folder.
In this repsitory, just download a local copy and zip from the repository: https://github.com/AlekseyMalyshev/perfcomp/tree/master/euler35. you can extract the euler35.zip to euler35/ folder.
the file hirechy will be this:
euler35/
main_on_mac.sh
compile_on_mac.sh
euler35.js|java|cpp|_in.txt