Christian Schröder - MATLAB Cody - MATLAB Central

Christian Schröder

5
Rank
91
Badges
51712
Score
51 – 100 of 5,251

Christian Schröder submitted a Comment to Solution 14525620

I'm not sure why str2num is banned, BTW; I originally used it on line 10.

on 16 Jan 2025

Christian Schröder submitted a Comment to Problem 60786. Count the primes resulting from changing one digit of a number

If you change the first digit of 73 from a 7 to a 0, you also get a prime - but here, we only consider primes with the same number of digits as the original number, correct?

on 16 Jan 2025

Christian Schröder submitted a Comment to Problem 60784. Indicate how the Prague astronomical clock strikes the hours

Apparently my solution "was marked as potential spam and was not posted", and will now be reviewed by administrators. I wonder what triggered that - or whether Cody shouldn't have a "we're pretty sure this isn't a spammer" flag for established users, to be set by admins at their discretion or perhaps awarded based on problems solved, points earned or so.

on 6 Jan 2025

Christian Schröder submitted a Comment to Problem 221. Boolean algebra

Thanks, Dyuman! It's working now — thanks to you and the entire Cody team for being on the case and tracking down and fixing this issue!

on 1 Jan 2025

Christian Schröder submitted a Comment to Problem 60783. Convert integers from base 10 to proper primary notation

@Chris Yes. If you add this requirement, then you can in fact drop the first one, and just write (say) this: "Because integers can be expressed as sums (and differences) of primes in several ways, several primary notations for a number can exist. To ensure uniqueness, we require that when 1 is added to the factors of the primes, (so that 'p' is replaced with 2, 'x' with 1 and 'm' with 0 in the primary notation), the resulting decimal number is minimal. For instance, 5 can be represented as pp, pxx and pxmm; since 22 is smaller than 211 or 2100, pp is the proper primary representation of 5. The number 12 can be represented as pxpp and ppxx; since 2122 is less than 2211, pxpp is the proper primary representation of 12."

on 1 Jan 2025

Christian Schröder submitted a Comment to Problem 60783. Convert integers from base 10 to proper primary notation

And this also affects the test cases: -28734 and 153488 in particular, for which my WIP solution finds different proper primary notations, namely 'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmpmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm' and 'ppppppppppppppppppppppppppppppppppppppppppppxpppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppmppppp' respectively.

on 1 Jan 2025

Christian Schröder submitted a Comment to Problem 60783. Convert integers from base 10 to proper primary notation

> However, proper primary notation has the smallest number of digits. So, while 5 can be expressed as pp, pxx, and pxxm, the proper primary notation is pp. I think this isn't enough to ensure uniqueness: 12 could be pxpp (7 + 3 + 2), or ppxx (7 + 5), for instance.

on 1 Jan 2025

Christian Schröder submitted a Comment to Problem 58019. Factor a number into Fermi-Dirac primes

@Dyuman Here's my two cents: 256 = [256]. [4 64] is not valid since 64 is not a prime power where the exponent is a power of two. [16 16] is out since - I assume - you're supposed to simplify as much as possible. Same for [2 2 2 2 2 2 2 2], [4 4 4 4] and so on. But you're right that this additional requirement is needed to ensure uniqueness. 1024 = [4 256] using the same reasoning.

on 8 Dec 2024

Christian Schröder submitted a Comment to Solution 14440242

Always impressive to see someone else beat Tim's size.

on 6 Dec 2024

Christian Schröder submitted a Comment to Problem 221. Boolean algebra

Hi Dyuman, thanks for being on the case! To answer your questions: 1. It's been happening on this problem and problem 1, which I tried submitting solutions to yesterday to work out where exactly the problem was. I got the error once, but ONLY once, on problem 1; on this problem, on the other hand, it has happened every single time. I've not tried to solve other problems recently. 2. Windows 11 (x64); I've tried both Firefox and Opera (the latter is based on Chrome). Same problem with both 3. I've not tried; too much to do at work right now to be able to sneak in Cody time...

on 2 Dec 2024

Christian Schröder submitted a Comment to Problem 221. Boolean algebra

Whenever I try to submit a solution or use the scratch pad for testing, I get the message The server is not available. Wait a few minutes, and then retry your request. If the problem persists, contact the instructor. This happens regardless of what code is entered in the solution/scratch pad textareas, so I think it points to a Cody problem rather than a code problem.

on 2 Dec 2024

Christian Schröder received Divisible by x Master badge

on 30 Nov 2024

Christian Schröder submitted a Comment to Solution 14409003

Excellent!

on 26 Nov 2024

Christian Schröder submitted a Comment to Solution 14384797

Cool, that's a nice way of side-stepping that issue!

on 11 Nov 2024

Christian Schröder submitted a Comment to Solution 14382154

This isn't REALLY correct, of course, since it'll miss diagonals consisting entirely of zeros.

on 5 Nov 2024

51 – 100 of 5,251
Go to top of page