2016-11-30 18:43:20 +01:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								Change Log
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								==========
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								- v0.1: Initial release
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									- Basic prime calculation.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									- Uses a growing vector of known primes and gets the modulus of the number divided by these primes.
							 | 
						
					
						
							
								
									
										
										
										
											2016-12-09 23:26:27 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									- Uses type `long long' to hold prime numbers.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								- v0.2: Multi-Precision
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									- Switch to C.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									- Uses GNU Multiple Precision library (GMP) to hold prime numbers, allowing for 'infinite' size.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									- Add `likely()' and `unlikely()' macros to optimize.
							 | 
						
					
						
							
								
									
										
										
										
											2016-12-10 14:54:12 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- v0.2.1: Memory Leak Fixes
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									- Fixed a major memory leak at the end of the program.
							 | 
						
					
						
							
								
									
										
										
										
											2016-12-10 15:30:51 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									- Added more optimizers.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								- v0.3: Optimizations
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									- Algorithm skips half the known primes.
							 | 
						
					
						
							
								
									
										
										
										
											2016-12-10 17:12:00 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									- Removed `likely()' and `unlikely()' macros due to lack of information.
							 | 
						
					
						
							
								
									
										
										
										
											2016-12-10 17:12:58 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									- Improved performance.
							 | 
						
					
						
							
								
									
										
										
										
											2016-12-13 17:51:48 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- v0.4: Fixed Algorithm
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									- Fixed algorithm to actually calculate primes.
							 | 
						
					
						
							
								
									
										
										
										
											2016-12-13 16:12:31 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									- Added extra C99 optimizations.
							 | 
						
					
						
							
								
									
										
										
										
											2016-12-14 15:05:24 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								- v0.5: Minor Changes
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									- Use `size_t' instead of `unsigned long long int'.
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									- Minor optimizations to the algorithm.
							 | 
						
					
						
							
								
									
										
										
										
											2016-12-14 17:31:36 +01:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									- Added commandline argument parsing.
							 |