Skip to content

Instantly share code, notes, and snippets.

@belteshassar
belteshassar / primes_base_3.txt
Created May 2, 2016 11:37
First 100 primes in base 3
2
10
12
21
102
111
122
201
212
1002
@belteshassar
belteshassar / aurora-nowcast-map.txt
Last active February 3, 2018 23:22
Ovation Aurora Short Term Forecast Generated At: 2016-03-15 05:55 UTC
This file has been truncated, but you can view the full file.
#Aurora Specification Tabular Values
# Product: Ovation Aurora Short Term Forecast <path to tabular data>
# Product Valid At: 2016-03-15 06:25
# Product Generated At: 2016-03-15 05:55
#
# Prepared by the U.S. Dept. of Commerce, NOAA, Space Weather Prediction Center.
# Please send comments and suggestions to SWPC.Webmaster@noaa.gov
#
# Missing Data: (n/a)
# Cadence: 5 minutes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from math import sqrt
def isprime(n):
"""Return True if n is a prime number and False if it is not."""
if n <= 1:
return False
if n == 2:
return True