Post History
Husk, 8 bytes Ψḟo≥⁰≠İp Try it online! or Verify first 8 values It is always a good day when you get to use Ψ in your program. Explanation Ψḟo≥⁰≠İp İp to the infinite list of prime num...
Answer
#2: Post edited
- # [Husk], 8 bytes
- Ψḟo≥⁰≠İp
[Try it online!][TIO-khimeggk]- [Husk]: https://github.com/barbuz/Husk
- [TIO-khimeggk]: https://tio.run/##ARwA4/9odXNr///OqOG4n2/iiaXigbDiiaDEsHD///81 "Husk – Try It Online"
- It is always a good day when you get to use `Ψ` in your program.
- ## Explanation
- ```
- Ψḟo≥⁰≠İp
- İp to the infinite list of prime numbers,
- Ψ apply this higher order function on overlapping pairs
- ḟo first element where
- ≠ absolute difference
- ≥⁰ is greater than or equal to the input.
- # [Husk], 8 bytes
- Ψḟo≥⁰≠İp
- [Try it online!][TIO-khimeggk] or [Verify first 8 values](https://tio.run/##ASIA3f9odXNr/23igoHhuKM4/86o4bifb@KJpeKBsOKJoMSwcP// "Husk – Try It Online")
- [Husk]: https://github.com/barbuz/Husk
- [TIO-khimeggk]: https://tio.run/##ARwA4/9odXNr///OqOG4n2/iiaXigbDiiaDEsHD///81 "Husk – Try It Online"
- It is always a good day when you get to use `Ψ` in your program.
- ## Explanation
- ```
- Ψḟo≥⁰≠İp
- İp to the infinite list of prime numbers,
- Ψ apply this higher order function on overlapping pairs
- ḟo first element where
- ≠ absolute difference
- ≥⁰ is greater than or equal to the input.
#1: Initial revision
# [Husk], 8 bytes Ψḟo≥⁰≠İp [Try it online!][TIO-khimeggk] [Husk]: https://github.com/barbuz/Husk [TIO-khimeggk]: https://tio.run/##ARwA4/9odXNr///OqOG4n2/iiaXigbDiiaDEsHD///81 "Husk – Try It Online" It is always a good day when you get to use `Ψ` in your program. ## Explanation ``` Ψḟo≥⁰≠İp İp to the infinite list of prime numbers, Ψ apply this higher order function on overlapping pairs ḟo first element where ≠ absolute difference ≥⁰ is greater than or equal to the input.