Skip to main content
deleted 2 characters in body
Source Link
0xffcourse
  • 2.8k
  • 3
  • 15
  • 27

Python 2, 135 122121 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>2and 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!Try it online!

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!

Python 2, 135 121 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)>2and 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!

deleted 1 character in body
Source Link
0xffcourse
  • 2.8k
  • 3
  • 15
  • 27

Python 2, 135135 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(lambda x:x>1andi>1and all(x%ii%j for ij in range(2,x)))(i))]) 

Try it online!Try it online!

Python 2, 135 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(lambda x:x>1and all(x%i for i in range(2,x)))(i)]) 

Try it online!

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!

deleted 9 characters in body
Source Link
0xffcourse
  • 2.8k
  • 3
  • 15
  • 27

Python 2, 140135 bytes

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

Try it online!Try it online!

Python 2, 140 bytes

lambda x:(lambda t,x:len(t)==3 and t[0]*t[1]*t[2]==x)([i for i in range(2,x)if x%i<1and(lambda x:x>1and all(x%i for i in range(2,x)))(i)],x) 

Try it online!

Python 2, 135 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(lambda x:x>1and all(x%i for i in range(2,x)))(i)]) 

Try it online!

Source Link
0xffcourse
  • 2.8k
  • 3
  • 15
  • 27
Loading