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 24, 2026 20:10Dominique GarmierDominique GarmierScore: 58,950Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 14, 2026 11:3058,43077,127,94950,410,0001,008,0002,392,064
2Mar 14, 2026 11:3058,49377,075,86051,474,00002,387,968
3Mar 24, 2026 20:1058,62574,657,36650,579,0001,011,0002,277,376
4Mar 14, 2026 11:3058,95082,324,41350,879,000997,0002,383,872
5Mar 24, 2026 20:1058,99880,437,37449,922,0001,996,0002,277,376
6Mar 24, 2026 20:1059,11678,447,70152,022,00002,277,376