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 17, 2026 06:06Josu San MartinJosu San MartinScore: 38,669Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 06:0538,34157,404,37332,718,0001,022,0002,449,408
2Jan 17, 2026 06:0538,53860,641,47931,919,0001,994,0002,453,504
3Jan 17, 2026 06:0538,53958,387,63732,917,000997,0002,453,504
4Jan 17, 2026 06:0538,55061,057,18232,927,000997,0002,449,408
5Jan 17, 2026 06:0538,56656,620,53431,942,0001,996,0002,461,696
6Jan 17, 2026 06:0538,59557,893,39331,967,0001,997,0002,453,504
7Jan 17, 2026 06:0538,66956,807,97432,028,0002,001,0002,457,600
8Jan 17, 2026 06:0538,67757,885,26333,035,0001,001,0002,449,408
9Jan 17, 2026 06:0638,68255,667,88732,038,0002,002,0002,445,312
10Jan 17, 2026 06:0638,68462,667,27733,041,0001,001,0002,445,312
11Jan 17, 2026 06:0538,69156,166,00532,046,0002,002,0002,514,944
12Jan 17, 2026 06:0638,69755,936,31631,049,0003,004,0002,285,568