# For up to date code:# https://github.com/codereport/bqn-code/blob/main/pwc/282-1.bqn⟨Group⟩⇐•Import"../lib/fun.bqn"GoodInteger←⊑¯1∾˜·(3⊸=≠¨)⊸/Group# Tests•ShowGoodInteger"12344456"# "444"•ShowGoodInteger"1233334"# -1•ShowGoodInteger"10020003"# "000"