Skip to content

koorukuroo/Prime-Number-List

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prime-Number-List

>> import pandas as pd
>> url = 'https://raw.githubusercontent.com/koorukuroo/Prime-Number-List/master/primes.csv'
>> primes = pd.read_csv(url, header=None, names=['prime'])
>> print(primes)
   prime
      0              2
      1              3
      2              5
      3              7
      4             11
      5             13
>> primes.size
1000000
import pandas as pd

# Ensure you use the raw version of the file from GitHub
url = 'https://raw.githubusercontent.com/koorukuroo/Prime-Number-List/master/primes.csv'
primes = pd.read_csv(url, header=None, names=['prime'])

print(primes)

# To get the size (number of primes in the file), use the `shape` attribute
print(primes.shape[0])  # This gives the number of rows in the dataframe

Source : http://primes.utm.edu/lists/small/millions/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published