I tried it with SymPy Live, Wolfram Alpha and google with reference to "Algorithm learned with Python 4th: Prime numbers".

(Original post) https://qiita.com/Yuya-Shimizu/items/5f00e085c8052c115604

With SymPy Live

https://live.sympy.org/ input print([i for i in sieve.primerange(1, 100)]) output [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]

At Wolfram Alpha

input Prime numbers up to 100 https://www.wolframalpha.com/input/?i=100%E3%81%BE%E3%81%A7%E3%81%AE%E7%B4%A0%E6%95%B0&lang=ja output 2 | 3 | 5 | 7 | 11 | 13 | 17 | 19 | 23 | 29 | 31 | 37 | 41 | 43 | 47 | 53 | 59 | 61 | 67 | ... | 97 (25 integer)

on google

input Prime numbers up to 100 https://www.google.com/search?q=100%E3%81%BE%E3%81%A7%E3%81%AE%E7%B4%A0%E6%95%B0&rlz=1C1CHBD_jaJP908JP908&oq=100%E3%81%BE%E3%81%A7%E3%81%AE&aqs=chrome.1.69i57j0l4j0i395l3.6254j1j7&sourceid=chrome&ie=UTF-8 output The prime numbers that are often taken up in memorization tests are from 1 to 100, "2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, It is 25 pieces of "59, 61, 67, 71, 73, 79, 83, 89, 97".

Recommended Posts

I tried it with SymPy Live, Wolfram Alpha and google with reference to "Algorithm learned with Python 4th: Prime numbers".
Algorithm learned with Python 4th: Prime numbers
I tried it with Wolfram Alpha and google, referring to "[Fundamental Information Technology Engineer Examination] I wrote an algorithm for determining leap years in Python."
I tried it with Wolfram Alpha by referring to "Solving simultaneous linear equations with Python (sweeping method and fractional expression)".
I tried to create a list of prime numbers with python
Algorithm learned with Python 18th: Sorting (stack and queue)
I tried to make GUI tic-tac-toe with Python and Tkinter
I made a server with Python socket and ssl and tried to access it from a browser
[5th] I tried to make a certain authenticator-like tool with python
I tried to make a periodical process with Selenium and Python
[4th] I tried to make a certain authenticator-like tool with python
I tried to easily detect facial landmarks with python and dlib
Algorithm learned with Python 10th: Binary search
Algorithm learned with Python 5th: Fibonacci sequence
Algorithm learned with Python 9th: Linear search
I tried to create a program to convert hexadecimal numbers to decimal numbers with python
Algorithm learned with Python 7th: Year conversion
Algorithm learned with Python 8th: Evaluation of algorithm
Algorithm learned with Python 19th: Sorting (heapsort)
Algorithm learned with Python 6th: Leap year
[Zaif] I tried to make it easy to trade virtual currencies with Python
Algorithm learned with Python 12th: Maze search
I tried updating Google Calendar with CSV appointments using Python and Google APIs
Algorithm learned with Python 11th: Tree structure
I made a system that automatically decides whether to run tomorrow with Python and adds it to Google Calendar.
I tried to make a periodical process with CentOS7, Selenium, Python and Chrome
Mayungo's Python Learning Episode 5: I tried to do four arithmetic operations with numbers
I tried to automate internal operations with Docker, Python and Twitter API + bonus
When I tried to create a virtual environment with Python, it didn't work
I tried using Google Translate from Python and it was just too easy
Algorithm learned with Python 13th: Tower of Hanoi
I tried Jacobian and partial differential with python
I tried to get CloudWatch data with Python
Algorithm learned with Python 14th: Tic-tac-toe (ox problem)
I tried to output LLVM IR with Python
Algorithm learned with Python 17th: Sorting (bubble sort)
I tried to automate sushi making with python
I tried to automate the article update of Livedoor blog with Python and selenium.
Image processing with Python (I tried binarizing it into a mosaic art of 0 and 1)
I tried to compare the processing speed with dplyr of R and pandas of Python
The 15th offline real-time I tried to solve the problem of how to write with python
I wanted to operate google spread sheet with AWS lambda, so I tried it [Part 2]
I tried to implement and learn DCGAN with PyTorch
I tried to implement Minesweeper on terminal with python
I tried to get started with blender python script_Part 01
I tried to touch the CSV file with Python
I tried to draw a route map with Python
I tried to solve the soma cube with python
I tried to automatically read and save with VOICEROID2
I tried to get started with blender python script_Part 02
I tried to implement an artificial perceptron with python
I tried to automatically generate a password with Python3
I tried to solve the problem with Python Vol.1
I tried to analyze J League data with Python
I tried to implement Grad-CAM with keras and tensorflow
I tried to access Google Spread Sheets using Python
I tried to solve AOJ's number theory with Python
Introduction to AI creation with Python! Part 1 I tried to classify and predict what the numbers are from the handwritten number images.
I tried to get the number of days of the month holidays (Saturdays, Sundays, and holidays) with python
I also tried to imitate the function monad and State monad with a generator in Python
I want to make a voice changer using Python and SPTK with reference to a famous site