How to build and run the C version: gcc ulam.c -o ulam ./ulam 100 > ulam.pbm display ulam.pbm I wrote the Ruby version just for fun. It's slow O:-) -- Guillem