Skip to main content
added 42 characters in body
Source Link
Damien
  • 2.4k
  • 9
  • 20

Haskell, 4343> 42 bytes

Brute force solution.

Saved 1 byte thanks to Xnor

f n=[(x,y)|y<-[1..n]],x<-[1..n],x*x*y==n]!!0

Haskell, 43 bytes

Brute force solution

f n=[(x,y)|y<-[1..n],x<-[1..n],x*x*y==n]!!0

Haskell, 43> 42 bytes

Brute force solution.

Saved 1 byte thanks to Xnor

f n=[(x,y)|y<-[1..],x<-[1..n],x*x*y==n]!!0
Source Link
Damien
  • 2.4k
  • 9
  • 20

Haskell, 43 bytes

Brute force solution

f n=[(x,y)|y<-[1..n],x<-[1..n],x*x*y==n]!!0