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 / OpenAI_server.js
Last active February 23, 2023 04:39
View 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: )
const express = require('express');
const multer = require('multer');
const fs = require('fs');
const app = express();
classmember / OpenAI_client.js
Last active February 23, 2023 04:36
View 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 / keys.html
Last active November 12, 2022 21:07
This page counts how many times keys are pressed
View keys.html
<!DOCTYPE html>
<html lang="en">
<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>
<!-- -->
<script src="shortcut.js"></script>
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 " ")
View split.cpp
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 / phoneBook.cpp
Created October 22, 2022 20:53
Hashmaps in C++
View phoneBook.cpp
* phoneBook.cpp:
* Hashmaps in C++ - Kolby Heacock
* build:
* clang++ -std=c++2a test.cpp -o phonebook
* run:
* ./phonebook < input
classmember / fraction.cpp
Last active October 19, 2022 19:35
A simple fraction class
View fraction.cpp
// 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 / vue-markdown-editor.html
Last active November 18, 2021 19:40
Vue 3.0 markdown editor
View vue-markdown-editor.html
<!DOCTYPE html>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<title> Markdown </title>
classmember / roll-20-sided-dice.clj
Created November 16, 2021 16:48
rolls a 20 sided dice in Clojure
View roll-20-sided-dice.clj
;; 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
classmember /
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: