Anaprimes: Difference between revisions

m
Line 940:
upto = 100_000_000
h = Hash.new {|hash, key| hash[key] = []}
Prime.each(upto) do {|pr| h[pr.digits.sort] << pr }
h[pr.digits.sort] << pr
end
 
(3..(upto.digits.size-1)).each do |num_digits|
1,149

edits