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 21, 2026 22:25Dominique GarmierDominique GarmierScore: 11,899Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 21, 2026 22:2511,70129,178,51810,297,00002,347,008
2Mar 21, 2026 22:2511,73028,085,7799,290,0001,032,0002,457,600
3Mar 21, 2026 22:2511,82035,928,9359,362,0001,040,0002,441,216
4Mar 21, 2026 22:2511,86026,873,33410,437,00002,338,816
5Mar 21, 2026 22:2511,89933,359,7389,424,0001,047,0002,433,024
6Mar 21, 2026 22:2511,94940,445,8259,464,0001,051,0002,437,120
7Mar 21, 2026 22:2512,02047,085,4949,521,0001,057,0002,445,312
8Mar 21, 2026 22:2512,05727,306,8359,549,0001,061,0002,330,624
9Mar 21, 2026 22:2512,16335,739,8349,633,0001,070,0002,273,280