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 listDec 19, 2025 19:14Wookyung JeongWookyung JeongScore: 263,938Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2025 19:14262,495253,749,718228,997,0001,999,0002,289,664
2Dec 19, 2025 19:14262,942251,471,620230,388,0001,001,0002,269,184
3Dec 19, 2025 19:14262,964254,540,806230,407,0001,001,0002,277,376
4Dec 19, 2025 19:14263,086254,020,631230,514,0001,002,0002,289,664
5Dec 19, 2025 19:14263,938260,307,537231,264,0001,001,0002,273,280
6Dec 19, 2025 19:14264,078261,911,114231,388,0001,001,0002,277,376
7Dec 19, 2025 19:14264,419258,575,410232,689,00002,289,664
8Dec 19, 2025 19:14264,576259,720,720230,829,0001,998,0002,289,664
9Dec 19, 2025 19:14264,817255,611,123231,039,0002,000,0002,289,664