ShareMyScreen/ProjectEuler/0029
Jump to navigation
Jump to search
How many distinct terms are in the sequence generated by a^b for 2<=a<=100 and 2<=b<=100?
NB.count NB.│ leave only unique items NB.│ │ ravel NB.│ │ │ every combination of exponentiation of itself with self NB.│ │ │ │ 2 through 100 NB.│ │_ │ │____ │______ # ~. , (^/]) 2x+i.99 | use extended-precision arithmetic in case some powers are identical to floating-point precision