< Handcrafted Integers

Parent

~johano

Umm, if X is prime and Y is a multiple of X, then Y is *not* prime, by definition...

Oh wait, I believe I understand you better now!

Example: First server serves multiples of 2, second server serves multiples of 3, they'll both try to serve 6... so really to make this foolproof, each server should only serve powers of distinct primes... that way there won't be collisions...

Write a reply

Replies

~tetris wrote (thread):

Exactly, but how do you test for distinct primes? This would a require an "is_prime" function right