Skip to main content
Commonmark migration
Source Link

#Japt, 16 bytes

Japt, 16 bytes

Returns an array of digit arrays.

L²õì l4 k_ת9aZx

Test it


##Explanation L :100 ² :Squared õ :Range [1,L²] ì :Convert each to a digit array l4 :Filter elements of length 4 k_ :Remove each Z that returns truthy (not 0) × : When reduced by multiplication ª : OR Zx : When reduced by addition 9a : And subtracted from 9

Explanation

L                    :100
 ²                   :Squared
  õ                  :Range [1,L²]
   ì                 :Convert each to a digit array
     l4              :Filter elements of length 4
        k_           :Remove each Z that returns truthy (not 0)
          ×          :  When reduced by multiplication
           ª         :  OR
              Zx     :  When reduced by addition
            9a       :   And subtracted from 9

#Japt, 16 bytes

Returns an array of digit arrays.

L²õì l4 k_ת9aZx

Test it


##Explanation L :100 ² :Squared õ :Range [1,L²] ì :Convert each to a digit array l4 :Filter elements of length 4 k_ :Remove each Z that returns truthy (not 0) × : When reduced by multiplication ª : OR Zx : When reduced by addition 9a : And subtracted from 9

Japt, 16 bytes

Returns an array of digit arrays.

L²õì l4 k_ת9aZx

Test it


Explanation

L                    :100
 ²                   :Squared
  õ                  :Range [1,L²]
   ì                 :Convert each to a digit array
     l4              :Filter elements of length 4
        k_           :Remove each Z that returns truthy (not 0)
          ×          :  When reduced by multiplication
           ª         :  OR
              Zx     :  When reduced by addition
            9a       :   And subtracted from 9
added 494 characters in body
Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#Japt, 16 bytes

Returns an array of digit arrays.

L²õì l4 k_ת9aZx

Test it


##Explanation L :100 ² :Squared õ :Range [1,L²] ì :Convert each to a digit array l4 :Filter elements of length 4 k_ :Remove each Z that returns truthy (not 0) × : When reduced by multiplication ª : OR Zx : When reduced by addition 9a : And subtracted from 9

#Japt, 16 bytes

Returns an array of digit arrays.

L²õì l4 k_ת9aZx

Test it

#Japt, 16 bytes

Returns an array of digit arrays.

L²õì l4 k_ת9aZx

Test it


##Explanation L :100 ² :Squared õ :Range [1,L²] ì :Convert each to a digit array l4 :Filter elements of length 4 k_ :Remove each Z that returns truthy (not 0) × : When reduced by multiplication ª : OR Zx : When reduced by addition 9a : And subtracted from 9

Source Link
Shaggy
  • 43.5k
  • 4
  • 36
  • 94

#Japt, 16 bytes

Returns an array of digit arrays.

L²õì l4 k_ת9aZx

Test it