Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#MATLAB, 49 bytes @(x)find(~any(bsxfun(@rem,1:prod(1:x),(1:x)')),1)

MATLAB, 49 bytes

@(x)find(~any(bsxfun(@rem,1:prod(1:x),(1:x)')),1)

#MATLAB, 49 bytes @(x)find(~any(bsxfun(@rem,1:prod(1:x),(1:x)')),1)

MATLAB, 49 bytes

@(x)find(~any(bsxfun(@rem,1:prod(1:x),(1:x)')),1)
Source Link
Suever
  • 11.2k
  • 1
  • 24
  • 52

#MATLAB, 49 bytes @(x)find(~any(bsxfun(@rem,1:prod(1:x),(1:x)')),1)

AltStyle によって変換されたページ (->オリジナル) /