Divisible by 5

Problem Description
Design a circuit that determines whether an input value is evenly divisible by five.
The input is provided as a bitstream.
The circuit should output high when the value represented by the bitstream so far is divisible by five.
Example:
Input:
1 0 1 0 1Output:
0 0 1 1 0
Verilog
Code Editor Access
Log in to write, run and submit your solution to this interview question. It's free.
Output
Output goes here...
