Puzzle for 25 Jun 2009
Find a three digit prime number which

Re: Puzzle for 25 Jun 2009
I say 373
Has all prime digits  All are Prime 3, 7 Forms primes with its first two digits  Forms Prime with first 2 digits 37 Forms primes with its and last two digits.  Forms Prime with Last two  73 The last condition looks incomplete. There was no condition of uniqueness of digits There was no condition like least 3 digit prime :) 
Re: Puzzle for 25 Jun 2009
179  3 unique digit prime no.
17 is a prime no. 79 is prime no. 
Re: Puzzle for 25 Jun 2009
Quote:
Sorry Mridula for Yesterday 
Re: Puzzle for 25 Jun 2009
Quote:
Quote:
I would like to also see a reason as to how you landed to the number you have as answer. 
Re: Puzzle for 25 Jun 2009
"The last condition looks incomplete."
I mean the sentence formation is incorrect. Which you have corrected now...haha What reason would you like? [btw, you didn't asked earlier to specify the reason] I just looked at the list of prime numbers and checked with the conditions you gave. Other numbers that I thought were: 113, 131, 137, 173, 197, 311, 313, 317  But 1 is not a prime number So the first number that I got was 373 
Re: Puzzle for 25 Jun 2009
All possible results are
237 373 537 737 Code:
int is_prime(int n) 
Re: Puzzle for 25 Jun 2009
LOL @ xpi0t0s, you bruteforced the solution for such a simple question !!
I mean, shabbir didn't even mention the word "smallest". So, that was really easy to figure out a 3digit number. Congrats nimesh. @ shabbir: So, you changed the posting time today (by almost 12 hours) !! :( I'll have to wait till 2morrow. 
Re: Puzzle for 25 Jun 2009
xpi0t0s  237 is not a prime number (237 = 3 * 79) List of Prime Numbers
Thanks Saswat, but the winner is not yet confirmed by Shabbir :) 
Re: Puzzle for 25 Jun 2009
Whoops, you're right, neither are 537 and 737 so the only result is 373. Adding
Code:
if (is_prime(i)) 
All times are GMT +5.5. The time now is 07:56. 