#Octave, 32 bytes, 10 numbers, by Luis Mendo
Octave, 32 bytes, 10 numbers, by Luis Mendo
Original code:
nnz(isprime(floor(s=3):i*-2i))+1
Modified codes:
2: nnz(isprime(floor(s=3):i*-3i))+1
3: nnz(isprime(floor(s=3):i*-5i))+1
4: nnz(isprime(floor(s=3):i*-9i))+1
5: nnz(isprime(floor(s=3):i*-9i))+2
6: nnz(isprime(floor(s=3):i*-9i))+3
7: nnz(isprime(floor(s=3):i*-9i))+4
8: nnz(isprime(floor(s=3):i*-9i))+5
9: nnz(isprime(floor(s=3):i*-9i))+6
10: nnz(isprime(floor(s=3):i*-9i))+7
There are many ways to make modifications here (for instance s=2
and +0
in the beginning).
Edit: A more probable alternative:
nnz(isprime(floor(s=2):i*-2i))+0
nnz(isprime(floor(s=2):i*-2i))+1
nnz(isprime(floor(s=2):i*-2i))+2
nnz(isprime(floor(s=2):i*-2i))+3
nnz(isprime(floor(s=2):i*-2i))+4
nnz(isprime(floor(s=2):i*-2i))+5
nnz(isprime(floor(s=2):i*-2i))+6
nnz(isprime(floor(s=2):i*-2i))+7
nnz(isprime(floor(s=2):i*-2i))+8
nnz(isprime(floor(s=2):i*-2i))+9