Блог пользователя Zhtluo

Автор Zhtluo, история, 3 года назад, По-английски

Maybe next time we should not make ChatGPT-able problems or OEIS-able problems. :)

  • Проголосовать: нравится
  • +364
  • Проголосовать: не нравится

»
3 года назад, скрыть # |
 
Проголосовать: нравится -102 Проголосовать: не нравится

Well well well...

why were you even testing ChatGPT... I hope you did this after the round not during

»
3 года назад, скрыть # |
 
Проголосовать: нравится +5 Проголосовать: не нравится

how does the chat gpt response translate into a solution for n = 99 tho

»
3 года назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

as my know chatgpt is bad on math how could it find them

»
3 года назад, скрыть # |
 
Проголосовать: нравится +33 Проголосовать: не нравится

I mean, asking for chatgpt to find what you asked is almost the same effort as writing code to find what you asked. It was expected to do some kind of bruteforce, you just asked chatgpt to do it for you. I would only be concerned if it output that after printing the statement.

»
3 года назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

did you verify them?

  • »
    »
    3 года назад, скрыть # ^ |
     
    Проголосовать: нравится +14 Проголосовать: не нравится

    Yes.

    • »
      »
      »
      3 года назад, скрыть # ^ |
      ← Rev. 2  
      Проголосовать: нравится +81 Проголосовать: не нравится

      Assuming it's correct, do you suppose that the solution set is scraped off the internet somewhere? I would be very impressed if ChatGPT generated those numbers by itself (without access to a Python interpreter).

      • »
        »
        »
        »
        3 года назад, скрыть # ^ |
        ← Rev. 2  
        Проголосовать: нравится +8 Проголосовать: не нравится

        At least the set seems to have all digits from $$$0$$$ to $$$9$$$, and I was able to find this Quora link related to this problem that could have been in the training data. However, it does not seem to have the set of numbers that the OP pointed out.

      • »
        »
        »
        »
        3 года назад, скрыть # ^ |
        ← Rev. 2  
        Проголосовать: нравится +19 Проголосовать: не нравится

        The latest ChatGPT can run Python code online.

        So it technically generated some Python code and ran it.

        I checked and this is the code it ran:

        def find_large_solution_for_n(n, min_count):
            # Smallest and largest n-digit numbers
            smallest_n_digit = 10 ** (n - 1)
            largest_n_digit = (10 ** n) - 1
        
            # Square root range for generating n-digit squares
            lower_bound = math.ceil(math.sqrt(smallest_n_digit))
            upper_bound = math.floor(math.sqrt(largest_n_digit))
        
            # Dictionary to store squares by their digit multisets
            squares_by_multiset = {}
        
            # Generate all possible squares within the range and group them by digit multisets
            for i in range(lower_bound, upper_bound + 1):
                square = i ** 2
                if len(str(square)) == n:
                    # Create a multiset key (sorted tuple of digits)
                    multiset_key = tuple(sorted(str(square)))
        
                    # Add the square number to the appropriate list in the dictionary
                    if multiset_key in squares_by_multiset:
                        squares_by_multiset[multiset_key].append(square)
                    else:
                        squares_by_multiset[multiset_key] = [square]
        
                    # Return the first set found with at least min_count elements
                    if len(squares_by_multiset[multiset_key]) >= min_count:
                        return squares_by_multiset[multiset_key]
        
            return None
        
        # Find a solution for n = 11 with more than 99 square numbers
        large_solution_for_11 = find_large_solution_for_n(11, 100)
        large_solution_for_11
        
»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Bro used chatGPT well rather than logic :|

»
3 года назад, скрыть # |
 
Проголосовать: нравится +22 Проголосовать: не нравится

Chat GPT wasn't necessary, you can do it with this simple code.

` map<string,vector<long long>> m;
  for (long long i=1;i<=300000;i++) {
    long long k=i*i;
    string s = to_string(k);
    sort(s.begin(),s.end());
    m[s].push_back(i);
  }
  for (auto u : m) {
    if (u.second.size()>=99) gg = u.first;
  }`
»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Well, yes, it's bruteforceable with a brief formal statement, so it'd be surprising if it wasn't chatgptable.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

LOL who needs chatgpt when you can a seperate script to generate squares.

»
3 года назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Can you share your prompt please? Zhtluo