Hi guys, so I took it up on Slava's words, and tried. http://paste.factorcode.org/paste?id=1713
I haven't tested much as I just wrote it. But it seems like it works. (i think the calculation is ok too, but my math is lousy so..) there are two versions, one is based on an array, the other on a hashtable. anyway, you can see it as public domain, if you want to refine and put in the library, go ahead. kobi ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk