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 listFeb 7, 2026 03:18zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:53M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:53011,159,6861,113,00002,113,536expected "6442459076 ", got "2305422362 "
2May 17, 2026 06:5308,427,2761,027,00002,113,536expected "6442459076 ", got "2305422362 "
3May 17, 2026 06:53010,459,3171,032,00002,113,536expected "6442459076 ", got "2305422362 "
4Feb 7, 2026 03:153,36521,031,8992,961,00002,277,376
5Feb 7, 2026 03:153,39020,571,2821,989,000994,0002,351,104
6Feb 7, 2026 03:183,39722,341,7351,993,000996,0002,347,008
7Feb 7, 2026 03:153,45722,309,3022,028,0001,014,0002,498,560
8Feb 7, 2026 03:183,47022,597,9322,036,0001,018,0002,347,008
9Feb 7, 2026 03:183,50617,772,4412,057,0001,028,0002,351,104