Make prime generation work when function pointers are equal. Get random