mockers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Leyland Numbers

2 posters

Go down

Leyland Numbers Empty Leyland Numbers

Post  shivang Thu Feb 05, 2009 6:48 pm

A leyland number is a number such that for x and y between 1 and 100 it can be represented as x^y + y^x
ie num=x^y + y^x

write a code to find all the leyland numbers n a given range
shivang
shivang

Posts : 42
Join date : 2009-01-30
Age : 35

Back to top Go down

Leyland Numbers Empty Re: Leyland Numbers

Post  Chunks Wed Mar 04, 2009 6:05 pm

Brute Force is the solution or any other method is there....???

Chunks

Posts : 5
Join date : 2009-02-02

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum