Here is a collection of short, open-ended, mathematically-based programming challenges. They can
typically be solved in no more than 10-lines of code.

2. Show $\sin^2(x)+\cos^2(x)=1$

3. Find the square root of a number.

4. Euler polynomial and primes

10. $n$ integer to perfect square

11. Integer terms

13. Which is larger?

15. x squared

19. Variable quadratic coefficient

20. Slope of a line

23. Rolling two dice

24. Round to the nearest integer

26. Average of sine

27. Average of sine with an offset

30. Rotate a square

32. Iterate the $\sin(x)$ or $\cos(x)$

34. sin(x)/x as x goes to zero

35. Imaginary root of a quadratic equation

36. Make a Plot

40. Dice rolls larger than 100

41. Solve a quadratic by iteration

42. Random Walk

43. Perfect square

46. Coin Flips

47. Coin Flips Again

48. Obtuse Triangle

50. Golden Ratio

51. Draw a line

52. Distance in 3D

55. A limit

56. Coincidences

57. Divisible by 11

60. Fractions of 7

61. 1/89

63. 5 random numbers

64. Airplane seating

65. Non squares

66. Different birthday problem

68. Two integers

69. Expected value

70. Prove an inverse tan indentity

72. Product of 1/2

73. Perfect cube

74. Maximal value

77. Five integers

78. Three integers

80. Three random numbers on [0,n]

83. Integers to 2001

87. 49 integers

88. Counting to 2003

89. Factors of 60

90. Numbers and their reciprocals

91. Juggler sequence

94. LCM and GCD

95. Reduce a fraction to lowest terms

98. Has 7 as a digit

99. Get a digit

100. Reverse a number

101. Goldbach Conjecture

102. Twin primes

103. Breaking a stick

104. Find some Emirps