Skip to content

Instantly share code, notes, and snippets.

Discovering New Math Concepts Using LLMs: A Step-by-Step Guide

Step 1: Embrace AI's Potential for Innovation in Mathematics

Example Prompts:

  • "How has AI been previously used to enhance mathematical understanding or discovery?"
  • "What are the current limitations in our mathematical understanding that AI, especially LLMs, might help address?"

Step 2: Diversify Mathematical Inquiry

Example Prompts:

  • "Using LLMs, can we list down a variety of mathematical problems or areas that haven't been fully explored?"
@classmember
classmember / OpenAI_server.js
Last active February 23, 2023 04:39
OpenAI_server.js
// Prompt:
// Write a node backend which accepts a .zip file from the JavaScript function in the following backticks:
// (the code in backticks ``` was here: https://gist.github.com/classmember/72ab335223722623af9ed5346e5ed6eb )
const express = require('express');
const multer = require('multer');
const fs = require('fs');
const app = express();
@classmember
classmember / OpenAI_client.js
Last active February 23, 2023 04:36
OpenAI_client.js
// Prompt:
// Write a frontend JavaScript function to upload a .zip file from a chrome extension in a browser to a node backend using express. The code must publish to a POST endpoint over HTTPS.
// Response:
// Note: This code assumes the use of jQuery for the AJAX request
function uploadZipFile(file) {
let formData = new FormData();
formData.append('file', file);
@classmember
classmember / keys.html
Last active November 12, 2022 21:07
This page counts how many times keys are pressed
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Detecting Key Input</title>
<!-- http://www.openjs.com/scripts/events/keyboard_shortcuts/shortcut.js -->
<script src="shortcut.js"></script>
@classmember
classmember / split.cpp
Created October 22, 2022 20:59
split( string ) function which returns vector<string> based on the string passed in to act as a separator (like " ")
vector<string> split(const string &str) {
vector<string> tokens;
string::size_type start = 0;
string::size_type end = 0;
while ((end = str.find(" ", start)) != string::npos) {
tokens.push_back(str.substr(start, end - start));
start = end + 1;
@classmember
classmember / phoneBook.cpp
Created October 22, 2022 20:53
Hashmaps in C++
/**
* phoneBook.cpp:
* Hashmaps in C++ - Kolby Heacock
*
* build:
* clang++ -std=c++2a test.cpp -o phonebook
*
* run:
* ./phonebook < input
*
@classmember
classmember / fraction.cpp
Last active October 19, 2022 19:35
A simple fraction class
// fraction.cpp, Kolby Heacock
// Description: A simple fraction class.
#include <iostream>
#include <cmath>
using namespace std;
// Fraction
// takes two integers as parameters during construction
@classmember
classmember / vue-markdown-editor.html
Last active November 18, 2021 19:40
Vue 3.0 markdown editor
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://unpkg.com/vue@next"></script>
<script type="text/javascript" src="https://unpkg.com/marked@0.3.6"></script>
<script type="text/javascript" src="https://unpkg.com/lodash@4.16.0"></script>
<title> Markdown </title>
<style>
html,
@classmember
classmember / roll-20-sided-dice.clj
Created November 16, 2021 16:48
rolls a 20 sided dice in Clojure
;; roll-20-sided-dice.clj
;; return a function that rolls a 20 sided dice
(def roll-20-sided-dice
(fn [] (inc (int (rand 19)))))
;; call function to roll 20 sided dice
(roll-20-sided-dice)
@classmember
classmember / game.py
Last active October 16, 2021 07:10
Number Guessing Game
"""
Random number guessing game
"""
import sys
from random import randrange
from math import ceil, floor
class NumberGuessingGame: