Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 850 Bytes

README.md

File metadata and controls

31 lines (26 loc) · 850 Bytes

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/