EnglishFrenchSpanish

OnWorks favicon

primes - Online in the Cloud

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

This is the command primes 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


primes.pl - Display all primes

SYNOPSIS


primes [options] [START] END

DESCRIPTION


Displays all primes between the positive integers START and END, inclusive. The START and
END values must be integers or simple expressions. This allows inputs like "10**500+100"
or "2**64-1000" or "2 * nth_prime(560)". Additionally, if END starts with '+' then it is
assumed to add to START. If only one number is given, primes up to that number are shown
(START = 0).

General options:

--help displays this help message

Filter options, which will cause the list of primes to be further filtered to only those
primes additionally meeting these conditions:

--twin Twin p+2 is prime

--triplet
Triplet p+6 and (p+2 or p+4) are prime

--quadruplet Quadruplet
p+2, p+6, and p+8 are prime

--cousin
Cousin p+4 is prime

--sexy Sexy p+6 is prime

--safe Safe (p-1)/2 is also prime

--sophie
Sophie Germain 2p+1 is also prime

--lucas
Lucas L_p is prime

--fibonacci
Fibonacci F_p is prime

--mersenne
Mersenne M_p = 2^p-1 is prime

--lucky
Lucky p is a lucky number

--palindr
Palindromic p is equal to p with its base-10 digits reversed

--pillai
Pillai n! % p = p-1 and p % n != 1 for some n

--good Good p_n^2 > p_{n-i}*p_{n+i} for all i in (1..n-1)

--cuban1
Cuban (y+1) p = (x^3 - y^3)/(x-y), x=y+1

--cuban2
Cuban (y+2) p = (x^3 - y^3)/(x-y), x=y+2

--pnp1 Primorial+1 p#+1 is prime

--pnm1 Primorial-1 p#-1 is prime

--euclid
Euclid pn#+1 is prime

--circular
Circular all digit rotations of p are prime

--panaitopol Panaitopol
p = (x^4-y^4)/(x^3+y^3) for some x,y

--provable
Ensure all primes are provably prime

Note that options can be combined, e.g. display only safe twin primes. In all cases
involving multiples (twin, triplet, etc.), the value returned is p -- the least value of
the set.

Use primes online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    archlabs_repo
    archlabs_repo
    Package repo for ArchLabs This is an
    application that can also be fetched
    from
    https://sourceforge.net/projects/archlabs-repo/.
    It has been hosted in OnWorks in...
    Download archlabs_repo
  • 2
    Zephyr Project
    Zephyr Project
    The Zephyr Project is a new generation
    real-time operating system (RTOS) that
    supports multiple hardware
    architectures. It is based on a
    small-footprint kernel...
    Download Zephyr Project
  • 3
    SCons
    SCons
    SCons is a software construction tool
    that is a superior alternative to the
    classic "Make" build tool that
    we all know and love. SCons is
    implemented a...
    Download SCons
  • 4
    PSeInt
    PSeInt
    PSeInt is a pseudo-code interpreter for
    spanish-speaking programming students.
    Its main purpose is to be a tool for
    learning and understanding the basic
    concep...
    Download PSeInt
  • 5
    oStorybook
    oStorybook
    oStorybook l'outil privil�gi� des
    �crivains. ATTENTION : voir sur
    http://ostorybook.tuxfamily.org/v5/
    --en_EN oStorybook the right tool for
    writers. WARNIN...
    Download oStorybook
  • 6
    Asuswrt-Merlin
    Asuswrt-Merlin
    Asuswrt-Merlin is a third party
    firmware for select Asus wireless
    routers. Based on the Asuswrt firmware
    developed by Asus, it brings tweaks, new
    features and ...
    Download Asuswrt-Merlin
  • More »

Linux commands

  • 1
    aafigure
    aafigure
    aafigure - convert ASCII art to an
    image ...
    Run aafigure
  • 2
    aafire
    aafire
    aafire, aainfo, aasavefont, aatest -
    aalib example programs ...
    Run aafire
  • 3
    coqtop.opt
    coqtop.opt
    coqtop.opt - The native-code Coq
    toplevel ...
    Run coqtop.opt
  • 4
    coqwc
    coqwc
    coqwc - print the number of
    specification, proof and comment lines
    in Coq files ...
    Run coqwc
  • 5
    g15composer
    g15composer
    g15composer - Scriptable command
    interface to libg15render(3) drawing
    functions DESCRIPTION: G15composer is a
    scriptable command interface to the
    libg15render ...
    Run g15composer
  • 6
    g15daemon
    g15daemon
    g15daemon - provides access to extra
    keys and the LCD available on the
    logitech G15 keyboard. DESCRIPTION:
    G15Daemon allows users access to all
    extra keys by d...
    Run g15daemon
  • More »

Ad