Maybe I just read past it in the docs, but how to do a while-true?.. I know I can use [ to start an infinite loop, but I doubt it's possible to use i}} to break it, since the first } would end the if instead of the loop.
Nvm, found it. I should use #. Not sure how I read past that..
@KevinCruijssen I think you've misunderstood the challenge here. Your output isn't quite correct. For example, your solution outputs 424 which is not a Lynch-Bell number (as 4 occurrs twice).
You could also golf the code down to at least 16 bytes. You'll probably see a few when you fix the answer. If you want some tips after that let me know :)
@Emigna I don't think I'll get it down to 15.. ;) But I'm working on golfing it a bit more. I'm still learning. I'm also a bit confused on how the loops works. For example, why does DS€ÖPΘ (with implicit leading I) work, but 3°FNDS€ÖPΘ– not? Is this due to the € inner-loop?
I have the feeling I'm missing something obvious causing me to struggle more than I should.. PS: I've never used actual golfing languages, except maybe one or two answers in Charcoal, so maybe there is a default way loops are handled in almost all golfing languages which I'm not familiar with yet.
My code contains Ð...sD so I think I can shorten the stack manipulation. Will look into it. I'm kinda proud of the mod by 0 observation there, though :P
Can I put my current code in a TIO link (Kevin should try a bit more before looking at the spoiler :P) for Emigna to check if I'm on the right track to 12?
I won't look. I want to fix my code and down to at least sub 25 (preferably sub 20) before looking at your answers. Although I might ask for tips if I'm stuck ;)
Hmm.. actually I also have to get back to work for a moment. Still have to fix something before my day off tomorrow (national holiday in The Netherlands) so my colleague in Sri Lanka can continue.. Will do that first, hopefully I still have some time to fix my answer before I leave the office.
@KevinCruijssen Where in the Netherlands are you from? (I did exchange studies in Delft). Didn't really learn any Dutch though. Too easy to get by on English.
Yeah, Delft is near Den Haag (The Hague). Hurwenen is between 's-Hertogenbosch and Utrecht (southern part of the province Gelderland), between the rivers Maas and Waal.
The 'states' (provinces) in The Netherlands are luckily pretty easy. And I might know the 'capitals' of each of those provinces. But that's about it. Last time I had a geography class was about 12 years ago.. (and with highschool I indeed meant middle-school). In English it's primary school, highschool, and college/university IIRC. Here we call it (literal translation from Dutch): Basic school, middle-school, high school.
Anyway, I'm off again. Was waiting for some compilations to finish and noticed your tag. Have a nice evening. And good luck with the 12-byter @Mr.Xcoder.
@Mr.Xcoder Sup. I haven't tried 05ab1e out yet, but I'm probably going to once I find a challenge where I think I could make it work.
I'm not really that familiar with golfing langs except for Japt and a bit of Jelly, what would you say 05ab1e is usually good at? Aside from base conversions :P