Skip to main content
3 of 4
deleted 1 character in body
0xffcourse
  • 2.8k
  • 3
  • 15
  • 27

Python 2, 135 122 bytes

  • Quite long since this includes all the procedures: prime-check, obtain-prime factors and check sphere number condition.
lambda x:(lambda t:len(t)==3and t[0]*t[1]*t[2]==x)([i for i in range(2,x)if x%i<1and i>1and all(i%j for j in range(2,i))]) 

Try it online!

0xffcourse
  • 2.8k
  • 3
  • 15
  • 27