GeeTwo - MATLAB Cody - MATLAB Central

GeeTwo

133
Rank
52
Badges
9631
Score
1 – 50 of 992

GeeTwo submitted a Comment to Problem 58498. Compute the Sisyphus sequence

Yes, the flag only affects the addition of 3 and 5. After the two is used and a_n < the first prime, adding that prime produces an even number less than twice that prime. Half it, and it's smaller than that prime, hence smaller than the next prime as well. first four steps,

on 11 Dec 2024

GeeTwo received Community Group Solver badge for Prime Numbers III

on 10 Dec 2024

GeeTwo submitted a Comment to Problem 59126. Compute the bubble popper fidget spinner sequence

My 39 solution is "clean' - not even a str2num or subtraction of character arrays. My 35 uses str2num() aggressively.

on 6 Dec 2024

GeeTwo submitted a Comment to Problem 58019. Factor a number into Fermi-Dirac primes

Ramon's solutions under 49 used pyrun() calls I don't even pretend to understand. My 36 post is straight MATLAB, though I admit I used str2num() rather strongly.

on 6 Dec 2024

GeeTwo submitted a Comment to Problem 58498. Compute the Sisyphus sequence

I still don't get why 3 is not "unused" in the alternate form on the second climb but is later on the third; it implies that it was "de-used". Is it that your step up can't be a doubling?

on 5 Dec 2024

GeeTwo submitted a Comment to Problem 57815. List numbers such that every sum of consecutive positive integers ending in those numbers is composite

The solutions don't match the problem statement, as 1 is not composite. It should be something like: "numbers m such that no sum of consecutive positive integers ending with m are prime".

on 5 Dec 2024

GeeTwo submitted a Comment to Solution 14430425

Correction to comment: lines 10 and 11, not 9 and 10. Inspired by Tim's line 6. The rest of the code, including that which looks a lot like Tim's line 7, I had already written.

on 4 Dec 2024

GeeTwo submitted a Comment to Solution 10726060

Thanks for line 6, Tim! It made my previous solution both faster and simpler.

on 4 Dec 2024

GeeTwo submitted a Comment to Problem 52664. List the Moran numbers

@Tim, thanks for the idea of using ismember(). It greatly simplified my already simplest solution to date. All I did before was squeeze a literal implementation and make it work just fast enough to fit the one-minute filter..Your inspiration took me from four statements to two.

on 1 Dec 2024

GeeTwo submitted a Comment to Solution 13943731

Shortest solution that doesn't use unique()!

on 8 Jun 2024

GeeTwo submitted a Comment to Problem 1388. Numbered lottery balls into cells

Stirling numbers of the second kind.

on 8 Jun 2024

1 – 50 of 992
Go to top of page