Navigation
Topics Register • News • History • How to • Sequences statistics • Template prototypes

Sieving a range of sequences

From Prime-Wiki
Jump to: navigation, search

Purpose

Sieving a range of several prime sequences using Srsieve for a range of n-values and a sieve depth.

Needed

  • srsieve.exe

Example for WIN

Sieving a range 3•2n-1 to 20•19n-1 (in general (b+1)bn-1) create a batch file named "run.bat" with:

set /a base=2
:next
set /a b1=%base%+1
srsieve -G -n 1 -N 10000 -P 3000000000 "%b1%*%base%^n-1"

if %base% EQU 20 goto ends
set /a base=%base%+1
goto next
:ends
  • -n 1 -N 10000: range for n-value
  • -P 3000000000: sieve depth

Call "run" in the command line interface in the directory with "srsieve.exe".

Outputs

  • srsieve.log: log-file
  • t17_b2.prp to t17_b20.prp: result files ready for testing with LLR