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 listMar 18, 2026 15:45limanjun99limanjun99Score: 35,440Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 15:4535,35061,404,20128,098,0003,010,0002,306,048
2Mar 18, 2026 15:4535,39253,295,09428,131,0003,014,0002,457,600
3Mar 18, 2026 15:4535,40052,483,40930,148,0001,004,0002,379,776
4Mar 18, 2026 15:4535,41154,522,16729,152,0002,010,0002,449,408
5Mar 18, 2026 15:4535,44060,600,10430,181,0001,006,0002,310,144
6Mar 18, 2026 15:4535,45758,828,64529,189,0002,013,0002,301,952
7Mar 18, 2026 15:4535,47052,453,22829,201,0002,013,0002,457,600
8Mar 18, 2026 15:4535,51354,185,55629,235,0002,016,0002,437,120
9Mar 18, 2026 15:4535,62455,527,90029,327,0002,022,0002,379,776