not proud of this one either, completely cheated and it does not get exactly the correct error (it was off by one for my input), but the quadratic solver on Wolfram Alpha was able to do it.
		
			
				
	
	
		
			14 lines
		
	
	
		
			269 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			269 B
		
	
	
	
		
			TOML
		
	
	
	
	
	
[package]
 | 
						|
name = "day21"
 | 
						|
version = "0.1.0"
 | 
						|
edition = "2021"
 | 
						|
 | 
						|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 | 
						|
 | 
						|
[dependencies]
 | 
						|
indicatif = "0.17.7"
 | 
						|
polyfit-rs = "0.2.1"
 | 
						|
primes = "0.3.0"
 | 
						|
rayon = "1.8.0"
 | 
						|
test-case = "3.3.1"
 |