You're viewing a comment by Paolo Bonzini and its responses.

Paolo Bonzini Permalink
June 08, 2008, 23:29

I used more or less the same approach as you to sum the primes, up to using awk and "delete a[NR-41]". :-) I used "tr -s" instead to split the files to one prime per line. And I used "fgrep -xf" to compute the intersections of the files, which is probably slower than sorting and using uniq.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type first 3 letters of your name: (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.