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 listApr 24, 2026 15:55Victor MerckléVictor MerckléScore: 39,052Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 24, 2026 15:5638,98656,113,83334,308,00002,473,984
2Apr 24, 2026 15:5639,01052,842,29833,320,0001,009,0002,457,600
3Apr 24, 2026 15:5639,01752,139,06233,326,0001,009,0002,465,792
4Apr 24, 2026 15:5639,02049,178,62533,329,0001,009,0002,465,792
5Apr 24, 2026 15:5639,05252,123,20733,356,0001,010,0002,465,792
6Apr 24, 2026 15:5639,06350,023,07333,365,0001,011,0002,412,544
7Apr 24, 2026 15:5639,08848,307,47034,398,00002,412,544
8Apr 24, 2026 15:5639,11049,510,00633,405,0001,012,0002,465,792
9Apr 24, 2026 15:5639,13655,077,61833,428,0001,012,0002,478,080