Pythagorean triples: Difference between revisions

m
wordliness
m (wordliness)
Line 4:
'''Task'''
 
HowThe task is to determine how many Pythagorean triples are there are with a perimeter no larger than 100? Ofand these,the hownumber manyof these that are primitive?.
 
'''Extra credit:''' Deal with large values. Can your program handle a max perimeter of 1,000,000? What about 10,000,000? 100,000,000?
 
Note: the extra credit is not for you to demonstrate how fast your language is compared to others; you need a proper algorithm to solve them in a timely manner.