This repository has been archived by the owner on Sep 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
/primesieve-master | ||
git-commit.sh | ||
/source.zip | ||
/node_modules |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ You should have received a copy of the GNU General Public License | |
along with this program. If not, see https://www.gnu.org/licenses/. | ||
E-mail: [email protected] */ | ||
// Import of modules | ||
const pi = require('./deleglise-rivat/utilities.js'); | ||
const { pismall } = require('./JSprimesieve/utilities.js'); | ||
const { hideBin } = require('yargs/helpers'); | ||
const yargs = require('yargs'); | ||
const validators = require('./cmdvalidators.js'); | ||
|
@@ -30,6 +30,10 @@ const options = yargs(hideBin(process.argv)) | |
}, argv => { | ||
validators.xValidator(argv.x); | ||
}) | ||
.option('n', { | ||
alias: 'nth-prime', | ||
description: 'Compute the n-th prime' | ||
}) | ||
.help() | ||
.alias('help', 'h') | ||
.alias('version', 'v') | ||
|
@@ -41,4 +45,4 @@ console.log('JSprimecount Copyright © 2021 Jakub Drozd'); | |
console.log('This program comes with ABSOLUTELY NO WARRANTY; for details see https://github.com/JakubDrozd/JSprimecount/blob/main/LICENSE.txt.'); | ||
console.log('This is free software, and you are welcome to redistribute it under certain conditions; see the above link for details.'); | ||
|
||
console.log(pi.pismall(options.x)); | ||
console.log(pismall(options.x)); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters