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 27, 2026 15:09Pavel SkripkinPavel SkripkinError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 15:10054,428,79235,929,0001,996,0002,424,832expected "51574792880929 ", got "51576410802596 "
2Apr 27, 2026 15:1042,73051,049,22136,587,0001,016,0002,424,832
3Apr 27, 2026 15:1042,83052,170,79636,673,0001,018,0002,428,928
4Apr 27, 2026 15:1042,91758,810,24036,747,0001,020,0002,424,832
5Apr 27, 2026 15:1042,97153,039,52535,825,0001,990,0002,428,928
6Apr 27, 2026 15:1043,00361,657,56836,848,000995,0002,441,216
7Apr 27, 2026 15:1043,03255,055,90835,876,0001,993,0002,433,024
8Apr 27, 2026 15:1043,06158,623,50835,900,0001,994,0002,433,024
9Apr 27, 2026 15:1043,28054,835,74536,083,0002,004,0002,433,024