just start at powers of 2 for each one find the next two good primes.You do this by finding the next prime using codegolf.stackexchange.com/a/10702/9206n or one of the other answers there and then testing for goodness
@quintopia there is pyecm I believe
@Mego surely you don't mind implementing trial division yourself! :)
if you're REAL SERIOUS about factoring large numbers, of course you're going to use C...so yeah it would be surprising to have a serious py package for GNFS
I think the quadratic sieve is already running for you, from the looks of it
And that challenge would probably be won by Peter Taylor because a) he's probably the only person I know who would know how that works and b) he's a madman
"Given long-term projects such as [10, 11, 6] where many factoring- enthusiasts worldwide constantly busy themselves to factor many special numbers, such as for instance small-radix repunits, it makes sense to investigate whether factoring efforts that are eagerly pursued no matter what can be combined to save on the overall amount of work"
In recreational mathematics, a repunit is a number like 11, 111, or 1111 that contains only the digit 1 — a more specific type of repdigit. The term stands for repeated unit and was coined in 1966 by Albert H. Beiler in his book Recreations in the Theory of Numbers.
A repunit prime is a repunit that is also a prime number. Primes that are repunits in base 2 are Mersenne primes.
== Definition ==
The base-b repunits are defined as (this b can be either positive or negative)
Thus, the number Rn(b) consists of n copies of the digit 1 in base b representation. The first two repunits base b for n=1...
Following the fine tradition of questions such as Find the largest prime whose length, sum and product is prime , this is a variant on a largest prime challenge.
Input
Your code should not take any input.
Definition
We say a prime p is good if p-1 has exactly 2 distinct prime factors.
Output...
Unique Prime Factors of Repunits
code-golf primes
The Background
We were talking prime factorization in chat and came across repunits. Repunits are a subset of the numbers known as repdigits, which are numbers consisting of only repeating digits, like 222 or 4444444444444444, but repunits cons...
This is a first try.
Here are the rules:
input: N+1 2-D coordinates (N >= 3) stored in a raw text file "./input" under the following format:
0.00;0.00
1.00;0.00
0.00;1.00
1.00;1.00
output: 1 printed to stdout (or your language equivalent) if the first point in the list (...
@Dennis Nice! Not all the languages in the list are implemented yet, are they? I tried SMBF, and I don't think it was working.
Or did you use the original interpreter?
What I mean is: the original interpreter(s) do not interpret dynamic code created on or to the right of the initial location of the pointer. This is, imho, a bug in the original interpreter that prevents it from following its own spec.
A simple test: ++++++++++++++++++++++++++++++++++++++++++++++ (46*'+') should generate a period . on the tape. This period is not, but should be, executed, printing itself.