Answer:
List of prime numbers between 1 and 800:
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, and 797.
To list down the all the prime numbers ranging from 1 to 800, we will use the following equation:
From numbers 5 - 39,
![6n+1,\text{and 6n-1}](https://img.qammunity.org/2023/formulas/mathematics/college/zdpj738yln59svo10w0txnicfj6pmweg8u.png)
For example:
![6n-1=6(1)-1=5](https://img.qammunity.org/2023/formulas/mathematics/college/o5m1cs34wxyyl3p15kqdjja6449fd71jsd.png)
![6n+1=6(1)+1=7](https://img.qammunity.org/2023/formulas/mathematics/college/gyl735w3xf7bnjfxlauhjlv6f2t9xccl1p.png)
![6n-1=6(2)-1=11](https://img.qammunity.org/2023/formulas/mathematics/college/odhmd0kysqr7oqetpt2blpeuboabhk3wvt.png)
![6n+1=6(2)+1=13](https://img.qammunity.org/2023/formulas/mathematics/college/i5s6uoozjr20idrcxdimccbe9lym55s9rq.png)
![6n-1=6(3)-1=17](https://img.qammunity.org/2023/formulas/mathematics/college/rcp13lbdebx798nj7rlha1sk0k7tlo3a8h.png)
![6n+1=6(3)+1=19](https://img.qammunity.org/2023/formulas/mathematics/college/ct5u94d06dos16a4jknwqnmrtcucn949ud.png)
And so on..
To find number greater than 40, we will use the following formula:
![n^2+n+41](https://img.qammunity.org/2023/formulas/mathematics/college/zpa89yd16q58phmap9qgw38vku4lr0ibr1.png)
![n^2-n+41](https://img.qammunity.org/2023/formulas/mathematics/college/a6zqa27zhcmvdqux0qpu4law86maoog0ui.png)
For example,
![n^2+n+41=0^2+0+41=41](https://img.qammunity.org/2023/formulas/mathematics/college/bh69pouwa9fe0mmdczthwn98d1qu3tgzom.png)
![n^2+n+41=1^2+1+41=43](https://img.qammunity.org/2023/formulas/mathematics/college/ub6bbr9ii48uyetvagscotv57ojrdd53vv.png)
![n^2+n+41=2^2+2+41=47](https://img.qammunity.org/2023/formulas/mathematics/college/djcj7od5tq8yuhzaunek7dkdrxsqh97gqe.png)
![n^2+n+41=3^2+3+41=53](https://img.qammunity.org/2023/formulas/mathematics/college/od3qv60c6eu8yocekrljkhkxl6a3edy4g7.png)
And so on.. Since 800 is a huge number, I will list down all the numbers here, however, you can go ahead and try whether you get the same answer as these.
List of prime numbers between 1 and 800:
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, and 797.