Raku, 41 bytes
{grep {is-prime $_&2*$_+1&$_/2-.5},1..$_}
This filters (greps) the numbers from 1 to the input argument to those where the conjunction (&) of the number ($_), twice that number plus one (2 * $_ + 1) and half the number minus one half ($_ / 2 - .5) is prime. Th The conjunction is prime if all of its elements are.
Raku, 41 bytes
{grep {is-prime $_&2*$_+1&$_/2-.5},1..$_}
This filters (greps) the numbers from 1 to the input argument to those where the conjunction (&) of the number ($_), twice that number plus one (2 * $_ + 1) and half the number minus one half ($_ / 2 - .5) is prime. Th conjunction is prime if all of its elements are.
Raku, 41 bytes
{grep {is-prime $_&2*$_+1&$_/2-.5},1..$_}
This filters (greps) the numbers from 1 to the input argument to those where the conjunction (&) of the number ($_), twice that number plus one (2 * $_ + 1) and half the number minus one half ($_ / 2 - .5) is prime. The conjunction is prime if all of its elements are.
Raku, 41 bytes
{grep {is-prime $_&2*$_+1&$_/2-.5},1..$_}
This filters (greps) the numbers from 1 to the input argument to those where the conjunction (&) of the number ($_), twice that number plus one (2 * $_ + 1) and half the number minus one half ($_ / 2 - .5) is prime. Th conjunction is prime if all of its elements are.