from an old friendly code challenge at work: the idea was to build the smallest prime number checker using your programming language of choice.. naturally, i went for JS.