Is there a simple pari/gp program which can sieve numbers of the form k*n+c (where n and c fixed) up to a certain prime p and k is restricted within a certain range (a.k.a. for(k=1,10000,)?
Pseudocode:
n = (some number);
c = (some number);
T=[all k values];
forprime(p=2,100000000, for(i=1,#List if((T[i]*n+c)%p==0, (remove the number T[i] from the list)
In other words, start with a list of integers T Test the first prime in the prime range p, and remove integers k from the list T such that k*n+c is divisible by p. Then test the next prime and so on. Do this until you reached the limit of the sieve return, or print the list of candidates. Thanks for help!