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 listDec 5, 2025 21:42mgildermgilderScore: 240,652Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 5, 2025 21:42239,707239,806,973208,943,0001,999,0002,285,568
2Dec 5, 2025 21:42240,057233,924,452211,250,00002,363,392
3Dec 5, 2025 21:42240,100234,941,666211,288,00002,367,488
4Dec 5, 2025 21:42240,436239,930,940211,584,00002,277,376
5Dec 5, 2025 21:42240,652237,882,136210,776,000998,0002,285,568
6Dec 5, 2025 21:42240,898232,505,072209,991,0001,999,0002,371,584
7Dec 5, 2025 21:42241,295234,490,933211,339,0001,001,0002,285,568
8Dec 5, 2025 21:42242,374235,483,399212,288,0001,001,0002,285,568
9Dec 5, 2025 21:42243,261234,656,084212,070,0002,000,0002,285,568