Jump to content

World Stock Markets Trading Discussion - Wheezy whims


Recommended Posts

  • Replies 16
  • Created
  • Last Reply

FLASH BOYS

Good book

 

I notice that the solution to the "Is 3599 a prime number" problem given by Mr Aleynikov is not the most elegant solution - page133

the solution given:

3599=(3600-1)=(60squared-1squared)=(60-1)(60+1)=59*61

So the answer is no as the number can be factored.

Is solved by adding 1 and subtracting 1 from the number to give two numbers that can then be solved to produce factors.

However there is a simpler and more elegant solution to this problem .I.e

3599=3660-61=61*60-61=61(60-1)=61*59

The key to acheiving the simplest and most elegant solution is not to add and subtract 1 but to add and subtract a number equal to one of the factors that make up the non-prime number! in this case 61!

 

indeed the problem can be restated algebraically as:

x=61,y=60,z=59

3599=xy-x

3599=X(y-1)

3599=x*Z=

=61*59

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Tell a friend

    Love Stool Pigeons Wire Message Board? Tell a friend!
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • ×
    • Create New...