import math


def find_pythagorean_triplets(maxc):
    """Returns a list of (a, b, c) where a,b,c are ints and a^2 + b^2 = c^2, and
    c <= maxc"""
    count = 1
    tripletList = []
    while count <= maxc:
        print(count, end='')
        if count % 100 == 0:
            print('')
        for a in range(1, math.floor(count/math.sqrt(2) + 1)):
            for b in range(math.ceil(count/math.sqrt(2)), count):
                if a**2 + b**2 == count**2:
                    tripletList.append((a, b, count))
        count += 1
    return(tripletList)