Thanks:  0
Likes:  0
Dislikes:  0

1. ## Riddle

I know this is not of great importance but could anyone please explain this Testing riddle to me

A mathematician, a physicist, and an engineer are told “All odd numbers are prime”

The mathematician says “That’s silly, nine is a non-prime odd number.
The Physicist says “Let’s see, 3 is prime, 5 is prime, 7 is prime, looks like it is true”
The engineer says, “let’s see, 3 is prime, 5 is prime, 7 is prime, 9 is prime, 11 is prime, looks like it is true.”

2. ## Re: Riddle

A prime number is a positive integer not divisible without a remainder by any positive integer other than itself and one.

Therefore 9 is not a prime number as it can be divided by 3

The Mathematician knows the definition of prime and can not be swayed.
The Physicist evaluates some of the numbers and jumps to a conclusion.
The Engineer believes what he is told and sets out to prove it.

Maybe I missed the point, but that is how I would interpret it. If a tester were involved he would divide each number by each and every integer smaller than the test number to validate that it is either a prime or a non-prime.

3. ## Re: Riddle

My interpreation is not to make assumptions on a small and limited series of data

4. ## Re: Riddle

A tester asks, "What's the specification for a prime number?. And while you're at it, what's the specification for a number? You should also include your definition of an 'odd number'."

BTW: Which task do I charge this testing too?

MArk B.

5. ## Re: Riddle

The pointy haired boss should bring the engineer into his office and berate him for writing his own flawed isPrime() function rather than using the one in the API.

In an Agile shop, he would have written enough unit tests to verify that his isPrime() functions works properly before he even started coding... so this fiasco never would have happened.

7. ## Re: Riddle

Originally posted by Corey_G:
In an Agile shop, he would have written enough unit tests to verify that his isPrime() functions works properly before he even started coding... so this fiasco never would have happened.
<font size="2" face="Verdana, Arial, Helvetica">???
Looks like the Engineer in question might have written flawed unit tests for his isPrime() function!

8. ## Re: Riddle

That has to be the worst riddle I've ever seen. Doesn't have any clear point.

9. ## Re: Riddle

I suppose you like the one about the chicken crossing the road?

10. ## Re: Riddle

And he gets run over?

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.