All pastes #345666 Raw Edit

Someone

public text v1 · immutable
·published 2007-02-08 18:47 UTC
rendered paste body
The task: Count how many times the sequence '123' is present in aap.txt in all 8 directions.

Example:

113
223
333

In the above text there are 3 times '123'.