Generate all concatenations of each pair of primes
for ( let i = 0 ; i < initial . length ; i ++ ) { for ( let j = 0 ; j < initial . length ; j ++ ) { let a = initial [ i ] ; let b = initial [ j ] ; if ( a != b ) { let c = join ( a , b ) ; now . push ( c ) ; } } }