Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask ChatGPT to create faster or more concise versions of programs. #14

Open
Beliavsky opened this issue Jul 1, 2023 · 0 comments
Open

Comments

@Beliavsky
Copy link
Owner

Beliavsky commented Jul 1, 2023

Create a "make it faster" that check that the "faster" codes still compile, give the same results, and are faster.

Do the same thing with a "make it more concise" loop.

An example prompt is

Write a Fortran program that counts the number of primes below imax = 10^9 and prints the last one. Use the cpu_time intrinsic subroutine to count the time elapsed.

followed by make it faster prompts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant