4 ms·
> validating whether a given number is a prime number or not ... It is validating whether a string of consecutive 1's has a prime length. I don't think you've
by oneeyedpigeon 3y ago
> validating whether a given number is a prime number or not ... It is validating whether a string of consecutive 1's has a prime length.
I don't think you've really explained why those two things are different. They're different methods but they're checking the exact same thing.
- stevage 3y agoWell, no. The two things take input in two different forms, and one is substantially easier than the other. It's a bit like if you claimed that a program that voice to text is the same as one that does text to text.
- oneeyedpigeon 3y agoYou're totally right; I apologise.