Skip to main content
Commonmark migration
Source Link

Japt, 15 14 12 11 9 8 bytes

#Japt, 15 14 12 11 9 8 bytes 11-indexed.

ÇsiZÄÃèj 

Try it

Ç :Map each Z in the range [0,input) s : Convert to string i : Prepend ZÄ : Z+1 Ã :End map è :Count j : Primes 

#Japt, 15 14 12 11 9 8 bytes 1-indexed.

ÇsiZÄÃèj 

Try it

Ç :Map each Z in the range [0,input) s : Convert to string i : Prepend ZÄ : Z+1 Ã :End map è :Count j : Primes 

Japt, 15 14 12 11 9 8 bytes

1-indexed.

ÇsiZÄÃèj 

Try it

Ç :Map each Z in the range [0,input) s : Convert to string i : Prepend ZÄ : Z+1 Ã :End map è :Count j : Primes 
edited body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

#Japt, 15 14 12 11 9 8 bytes 1-indexed.

ÇsiZÄÃèj 

Try it

Ç :Map each XZ in the range [0,input) s : Convert to string i : Prepend ZÄ : Z+1 Ã :End map è :Count j : Primes 

#Japt, 15 14 12 11 9 8 bytes 1-indexed.

ÇsiZÄÃèj 

Try it

Ç :Map each X in the range [0,input) s : Convert to string i : Prepend ZÄ : Z+1 Ã :End map è :Count j : Primes 

#Japt, 15 14 12 11 9 8 bytes 1-indexed.

ÇsiZÄÃèj 

Try it

Ç :Map each Z in the range [0,input) s : Convert to string i : Prepend ZÄ : Z+1 Ã :End map è :Count j : Primes 
deleted 571 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95

#Japt, 15 14 12 11 99 8 bytes 1-indexed.

Çs_i°Z èj 

Try it


##Explanation Ç :Create the range [0,input) and pass each through a function s_ : Convert to a string, pass it through a function and convert back to an integer i : Prepend °Z : The prefix incremented string èj :Count the primes


##Original Solution

1 byte saved thanks to Oliver

Æ[XÄX]¬nÃèjÇsiZÄÃèj 

Test itTry it

ÆÇ à :Map each :CreateX in the range [0,input)   ands pass each X through a function : Convert to string [XÄX] i  : Array [X+1,X] Prepend  ¬ : :Z+1  Join to a string à n:End map  è : Convert to an integer:Count   èjj :Count the primesPrimes 

#Japt, 15 14 12 11 9 bytes 1-indexed.

Çs_i°Z èj 

Try it


##Explanation Ç :Create the range [0,input) and pass each through a function s_ : Convert to a string, pass it through a function and convert back to an integer i : Prepend °Z : The prefix incremented string èj :Count the primes


##Original Solution

1 byte saved thanks to Oliver

Æ[XÄX]¬nÃèj 

Test it

Æ Ã :Create the range [0,input) and pass each X through a function [XÄX] : Array [X+1,X] ¬ : Join to a string  n : Convert to an integer   èj :Count the primes 

#Japt, 15 14 12 11 9 8 bytes 1-indexed.

ÇsiZÄÃèj 

Try it

Ç :Map each X in the range [0,input)   s  : Convert to string i  :  Prepend  : Z+1  Ã :End map  è :Count j : Primes 
added 182 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading
added 42 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading
added 50 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading
added 95 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading
added 4 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading
added 441 characters in body
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading
Source Link
Shaggy
  • 45k
  • 4
  • 39
  • 95
Loading