This question already has an answer here:
- What are bitcoin miners really solving? 4 answers
I want to write a program for mining, and my question is: anything that goes through hashes and gives an output with 18 zeros at the beginning is acceptable or the input must have a specific structure? and when I find the correct input where should I submit that to get bitcoin?