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 listMay 20, 2026 19:16Josu San MartinJosu San MartinScore: 11,334Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2026 19:1811,05518,829,5628,665,0001,064,0002,117,632
2May 20, 2026 19:1811,14219,081,0318,795,0001,010,0002,117,632
3May 20, 2026 19:1811,17219,996,5968,816,0001,016,0002,117,632
4May 20, 2026 19:1811,23919,905,4228,885,0001,006,0002,117,632
5May 20, 2026 19:1811,33420,981,8528,904,0001,070,0002,117,632
6May 20, 2026 19:1811,35619,480,7738,979,0001,015,0002,117,632
7May 20, 2026 19:1811,83921,355,2889,357,0001,062,0002,117,632
8May 20, 2026 19:1813,06121,721,67710,492,0001,002,0002,117,632
9May 20, 2026 19:1815,42823,650,70812,571,0001,006,0002,113,536