Test System

Most of my development is done on a Intel® Core™ i7-2600K CPU @ 3.40GHz.
My default compiler is G++ with a x86_64 target and its command-line settings are
g++ -O3 -march=native -fno-exceptions -fno-rtti -std=c++11

Execution Time

The majority of my C++ solutions need much longer to compile than to run.
The "slowest" solutions are (user time displayed by time):

problem seconds
103 - Special subset sums: optimum 4.27 seconds
  60 - Prime pair sets 1.69 seconds
  70 - Totient permutation 1.51 seconds
136 - Singleton differences 1.21 seconds
145 - How many reversible numbers are there below one-billion? 0.80 seconds
179 - Consecutive positive divisors 0.78 seconds
  12 - Highly divisible triangular number 0.46 seconds
  43 - Sub-string divisibility 0.42 seconds
  25 - 1000-digit Fibonacci number 0.41 seconds
  95 - Amicable chains 0.32 seconds
Note: 103 out of 133 solutions find the correct result in less than 0.1 seconds.

Memory Consumption

The GCC standard library consumes about 2 MByte RAM (basic I/O, etc.).

problem peak RAM consumption
  75 - Singular integer right triangles 26.3 MB
179 - Consecutive positive divisors 21.6 MB
  39 - Integer right triangles 21.3 MB
  87 - Prime power triples 20.1 MB
113 - Non-bouncy numbers 18.4 MB
187 - Semiprimes 16.5 MB
136 - Singleton differences 14.0 MB
  72 - Counting fractions 13.5 MB
  10 - Summation of primes 11.8 MB
  14 - Longest Collatz sequence 11.6 MB
Note: 101 out of 133 solutions allocate less than 2.5 MByte.

Some solutions could be modified to use smaller data types, especially because an int is 8 bytes on my system (64 bit compiler).

Code Metrics

C++ programs tend to be a bit longer than other popular languages (such as Python).
The metric "lines of code" excludes comments, empty lines and preprocessor command.

problem lines of code comments blank lines
  80 - Square root digital expansion 234 66 42
  60 - Prime pair sets 204 65 38
  54 - Poker hands 188 28 26
  98 - Anagramic squares 169 49 42
  50 - Consecutive prime sum 168 46 38
119 - Digit power sum 159 34 27
  90 - Cube digit pairs 141 32 28
  66 - Diophantine equation 136 30 25
  33 - Digit cancelling fractions 123 40 19
  58 - Spiral primes 120 40 28
Note: 66 out of 133 solutions have less than 50 lines of code.

Heatmap

green problems solve the original Project Euler problem and have a perfect score of 100% at Hackerrank, too.
yellow problems score less than 100% at Hackerrank (but still solve the original problem).
gray problems are already solved but I haven't published my solution yet.
blue problems are already solved and there wasn't a Hackerrank version of it (at the time I solved it) or I didn't care about it because it differed too much.

Please click on a problem's number to open my solution to that problem:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
The 133 solved problems had an average difficulty of 16.9% at Project Euler and I scored 11,174 points (out of 12300) at Hackerrank's Project Euler+.
more about me can be found on my homepage.
some names mentioned on this site may be trademarks of their respective owners.
thanks to the KaTeX team for their great typesetting library !