# [PowerShell], <s>22</s> 16 bytes

<!-- language-all: lang-powershell -->

    1..100-notmatch2

[Try it online!][TIO-jmt4j6eh]

[PowerShell]: https://github.com/TryItOnline/TioSetup/wiki/Powershell
[TIO-jmt4j6eh]: https://tio.run/##K8gvTy0qzkjNyfn/31BPz9DAQDcvvyQ3sSQ5w@j/fwA "PowerShell – Try It Online"

*-6 bytes thanks to mazzy*

Generates the range `1` to `100`, then pulls out those objects where they do `-notmatch` the number `2`. Running the `-notmatch` against an array like this acts like a filter on the array. Each item is left on the pipeline, and output is implicit.