Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJan 20, 2026 16:50Joshua Bergman AnderssonJoshua Bergman AnderssonScore: 246,050Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 16:50245,610241,966,971214,136,0002,001,0002,289,664
2Jan 20, 2026 16:50245,633237,069,755214,156,0002,001,0002,510,848
3Jan 20, 2026 16:50245,681237,312,978215,199,0001,000,0002,289,664
4Jan 20, 2026 16:50245,706238,268,144214,219,0002,002,0002,289,664
5Jan 20, 2026 16:50246,050243,364,220214,520,0002,004,0002,527,232
6Jan 20, 2026 16:50246,323240,871,032215,766,000998,0002,519,040
7Jan 20, 2026 16:50246,428240,467,758216,857,00002,523,136
8Jan 20, 2026 16:50246,530237,828,245213,947,0002,999,0002,265,088
9Jan 20, 2026 16:50246,582243,598,085214,993,0001,999,0002,281,472