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 8, 2026 03:11zielajzielajScore: 3,201Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 8, 2026 03:113,06723,327,2052,699,00002,453,504
2Mar 8, 2026 03:113,14218,649,9912,765,00002,453,504
3Mar 8, 2026 03:113,16319,575,4982,783,00002,445,312
4Mar 8, 2026 03:123,18218,196,0102,800,00002,449,408
5Mar 8, 2026 03:113,19317,138,4301,405,0001,405,0002,445,312
6Mar 8, 2026 03:123,19318,173,7442,810,00002,453,504
7Mar 8, 2026 03:113,20119,068,0852,817,00002,449,408
8Mar 8, 2026 03:113,31022,824,5951,942,000971,0002,445,312
9Mar 8, 2026 03:123,31722,837,3052,919,00002,453,504
10Mar 8, 2026 03:113,32420,258,8562,925,00002,453,504
11Mar 8, 2026 03:113,41020,452,3862,001,0001,000,0002,441,216
12Mar 8, 2026 03:113,65223,832,0132,143,0001,071,0002,449,408