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 16, 2024 23:49MatthiasMatthiasScore: 135,758Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 16, 2024 23:49135,099146,029,093117,888,000999,0002,285,568
2Dec 16, 2024 23:49135,200145,152,843116,977,0001,999,0002,273,280
3Dec 16, 2024 23:49135,232142,255,195117,004,0002,000,0002,285,568
4Dec 16, 2024 23:49135,385142,255,252118,138,0001,001,0002,363,392
5Dec 16, 2024 23:49135,758146,799,524118,464,0001,003,0002,277,376
6Dec 16, 2024 23:49135,909146,945,868118,595,0001,005,0002,285,568
7Dec 16, 2024 23:49135,911147,353,466119,602,00002,285,568
8Dec 16, 2024 23:49135,932149,146,818118,615,0001,005,0002,273,280
9Dec 16, 2024 23:49136,311152,049,034117,955,0001,999,0002,285,568