Skip to content

Latest commit

 

History

History

hello-compute

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

hello-compute

Runs a compute shader to determine the number of iterations of the rules from Collatz Conjecture

  • If n is even, n = n/2
  • If n is odd, n = 3n+1

that it will take to finish and reach the number 1.

Preview

in: [1, 4, 3, 295]

out: ["0", "2", "7", "55"]