News:

If you have forgotten your password use your email address to reset HERE

Main Menu

Project Update

Started by Dingo, July 16, 2026, 01:20:53 AM

Dingo

I have crunched enough work now to Create the Team.  Join BOINC-AUSTRALIA if you run this non BOINC project.


Keep it running

On Linux, running the client as a systemd service keeps it running across reboots. Create a unit file at /etc/systemd/system/crunch.service:

[Unit]
Description=primecrunch client
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/path/to/crunch  ## CHANGE THIS
Restart=on-failure
User=yourlinuxusername  ## CHANGE THIS

[Install]
WantedBy=multi-user.target


Then enable and start it:

sudo systemctl enable --now crunch








Have a look at the BOINC@AUSTRALIA

Facebook Page and join and also the Twitter Page.

Proud Founder and member of BOINC@AUSTRALIA
My Luck Prime 2060937 digits.
Have a look at my  Web Cam of Parliament House Ottawa, CANADA

Dingo

#1
Instead of making it a service I found that putting an entry in the crontab.

process in a linux terminal

1. sudo crontab -e  # Note here r is next to e on the keyboard and if you press r instad of e (contab -r) it deletes the crontab which is not good.

2. put this entry after all the commented out section.

@reboot /PATH/TO/crunch -p 4 >/var/log/crunch.log 2>&1 & 
>/var/log/crunch.log 2>&1 & 
##  EG MINE IS  @reboot /root/PrimeCrunch/crunch -p 4 >/var/log/crunch.log 2>&1 & 

NOTE: The -p lets you assign how many Threads to use.  If left off it will use all Threads.
NOTE:  If you forget the & cron will hang until crunch exits — which it never does.

That's it when you reboot or start the machine it will start crunch

If you use this and you want to stop the job from running use this command.

# Stop PrimeCrunch
pkill -f "/PATH/TO/crunch" 2>/dev/null

eg  mine is

pkill -f "/root/PrimeCrunch/crunch" 2>/dev/null


Added the Windows start crunch at machine start

1. Find the crunch program on your computer.

2. Create a shortcut and if you want to restrict the number of cores used in the Target block enter -p [number of cores] after crunch.
eg mine is "C:\Users\giles\PrimeCrunch\crunch.exe -p4"

3.Press the Windows key + R key to open the run box.

4. Paist shell:programs in the box and press enter.  The start menu window will open;

5. Open the StartUp folder and Paste your created shortcut into that folder.

6.  That's it, the first reboot or start you might get a warning asking if you really want to start this program.. If you trust it, well you are running it, click the box to deselect ask next time and press enter or whatever the button says can't remember.

7.  To stop crunch from starting at startup open the Task Manager and click the Startup Apps button. Right click on crunch and disable.  Do the opposite to enable it afterwards.










Have a look at the BOINC@AUSTRALIA

Facebook Page and join and also the Twitter Page.

Proud Founder and member of BOINC@AUSTRALIA
My Luck Prime 2060937 digits.
Have a look at my  Web Cam of Parliament House Ottawa, CANADA

Dingo

New feature added after one of my enquiries.

I had this post:

I created two 4003 and 4005. Looking at the ones running now they are small digit blocks.

QuoteI have one machine that I would like to allocate longer jobs to. What K number would be one that is over a 2,000,000 digits. My largest prime found on Primegrid is 2,060,937 digits.


His reply was to create a new page where you can estimate.

https://primecrunch.com/digit-calculator?k=999&d=1000000







Have a look at the BOINC@AUSTRALIA

Facebook Page and join and also the Twitter Page.

Proud Founder and member of BOINC@AUSTRALIA
My Luck Prime 2060937 digits.
Have a look at my  Web Cam of Parliament House Ottawa, CANADA