EnglishFrenchSpanish

OnWorks favicon

primesieve - Online in the Cloud

Run primesieve in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command primesieve that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


primesieve - an efficient program (and C/C++ library) for generating slices of prime
numbers

SYNOPSIS


primesieve [START] STOP [OPTION]...

DESCRIPTION


Generate the primes and/or prime k-tuplets in the interval [START, STOP] (< 2^64) using
the segmented sieve of Eratosthenes.

OPTIONS


-c[N+], --count[=N+]
Count primes and prime k-tuplets, 1 <= N <= 6 N: 1 = primes, 2 = twins, 3 =
triplets, ...

-d<N>, --dist=<N>
Sieve the interval [START, START + N]

-h, --help
Print this help menu

-n, --nthprime
Calculate the nth prime, e.g. 1 100 -n finds the 1st prime > 100

-p[N], --print[=N]
Print primes or prime k-tuplets, 1 <= N <= 6 N: 1 = primes, 2 = twins, 3 =
triplets, ...

-q, --quiet
Quiet mode, prints less output

-s<N>, --size=<N>
Set the sieve size in kilobytes, 1 <= N <= 2048

--test Run various sieving tests and exit

-t<N>, --threads=<N>
Set the number of threads, 1 <= N <= CPU cores

--time Print the time elapsed in seconds

-v, --version
Print version and license information

EXAMPLES


Print the primes below 1000000 $ primesieve 1e6 --print

Count the twin primes inside [10^9, 10^9 + 2^32] $ primesieve 1e9 --dist=2**32 -c2

COPYRIGHT


Copyright © 2015 Kim Walisch BSD 2-Clause License
<http://opensource.org/licenses/BSD-2-Clause>

Use primesieve online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    strace
    strace
    The strace project has been moved to
    https://strace.io. strace is a
    diagnostic, debugging and instructional
    userspace tracer for Linux. It is used
    to monitor a...
    Download strace
  • 2
    gMKVExtractGUI
    gMKVExtractGUI
    A GUI for mkvextract utility (part of
    MKVToolNix) which incorporates most (if
    not all) functionality of mkvextract and
    mkvinfo utilities. Written in C#NET 4.0,...
    Download gMKVExtractGUI
  • 3
    JasperReports Library
    JasperReports Library
    JasperReports Library is the
    world's most popular open source
    business intelligence and reporting
    engine. It is entirely written in Java
    and it is able to ...
    Download JasperReports Library
  • 4
    Frappe Books
    Frappe Books
    Frappe Books is a free and open source
    desktop book-keeping software that's
    simple and well-designed to be used by
    small businesses and freelancers. It'...
    Download Frappe Books
  • 5
    Numerical Python
    Numerical Python
    NEWS: NumPy 1.11.2 is the last release
    that will be made on sourceforge. Wheels
    for Windows, Mac, and Linux as well as
    archived source distributions can be fou...
    Download Numerical Python
  • 6
    CMU Sphinx
    CMU Sphinx
    CMUSphinx is a speaker-independent large
    vocabulary continuous speech recognizer
    released under BSD style license. It is
    also a collection of open source tools ...
    Download CMU Sphinx
  • More »

Linux commands

crm
crm
Use crm online using onworks.net
services. ...
Run crm
  • 4
    crmgr
    crmgr
    crmgr - administration utility for QDBM
    Curia ...
    Run crmgr
  • 5
    gappletviewer
    gappletviewer
    gappletviewer - Load and runs an applet
    ...
    Run gappletviewer
  • 6
    gaps
    gaps
    mummer - package for sequence alignment
    of multiple genomes ...
    Run gaps
  • s-processed="true">
    g15stats
    g15stats - A CPU/Memory/Swap usage
    meter for G15Daemon DESCRIPTION: The
    packages provides the following usage
    meter for LCD on some Logitech
    keyboards, usind g...
    Run g15stats
  • More »
  • Ad