Thread: Combined Sieve
View Single Post
Old 2020-12-16, 00:00   #33
SethTro
 
SethTro's Avatar
 
"Seth"
Apr 2019

10B16 Posts
Default

Quote:
Originally Posted by henryzz View Post
It would be useful if it was possible to specify decimal prp-top-percent.
I'm happy to add this but it would be an easy change if you wanted to write and contribute it. I believe you only need to change these two locations:

https://github.com/sethtroisi/prime-..._stats.py#L392 and https://github.com/sethtroisi/prime-...ap_test.py#L71

(This section assumes you don't have a lot of git experience in case this is your first time using got)

You don't have permission to write to my git project so you can clone my project under your name and save (and propose) your local changes from there. Github makes this easy they have a button called "fork" in the upper right when your signed in (you'll need to create an account if you don't have one). After you fork the project on github you need to tell your computer where it is and what to call it we do this with `git remote add` if you find the clone command under your forked project (under the green code button) you can copy that url (something like https://github.com/<your username>/prime-gap.git) and run `git remote add <name like "personal"> <url ending in .git>`

After you make the change you commit it with `git commit -am "allow decimal percent to test"` then push it to your new project with `git push -u <name from earlier e.g. "personal"> main`

I'm writing this from mobile and giving up here but can help more if these steps don't work (and implicitly assumed that you want to make and contribute this change)

If you don't want to do this you can always attach the result of a `git diff` or `git mail` but setting up git makes it easier for others to see and coordinate.
SethTro is offline   Reply With Quote