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 15:32Johan SannemoJohan SannemoScore: 9,866Success
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 15:299,78826,313,5507,537,0001,076,0002,510,848
2Jan 20, 2026 15:299,78925,420,0067,538,0001,076,0002,502,656
3Jan 20, 2026 15:299,84325,697,4267,580,0001,082,0002,285,568
4Jan 20, 2026 15:299,85629,178,0856,505,0002,168,0002,285,568
5Jan 20, 2026 15:329,86130,755,4687,594,0001,084,0002,289,664
6Jan 20, 2026 15:299,86525,560,6227,596,0001,085,0002,502,656
7Jan 20, 2026 15:299,86525,810,0526,511,0002,170,0002,281,472
8Jan 20, 2026 15:299,86625,400,7337,597,0001,085,0002,502,656
9Jan 20, 2026 15:299,86623,400,6548,682,00002,494,464
10Jan 20, 2026 15:299,93628,535,3646,558,0002,186,0002,281,472
11Jan 20, 2026 15:329,94924,664,4827,661,0001,094,0002,281,472
12Jan 20, 2026 15:299,95233,411,1346,569,0002,189,0002,498,560
13Jan 20, 2026 15:329,98626,389,7687,690,0001,098,0002,494,464
14Jan 20, 2026 15:299,99426,100,7657,696,0001,099,0002,506,752
15Jan 20, 2026 15:2910,12328,494,9266,929,0001,979,0002,285,568