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:12MatthiasMatthiasScore: 198,115Success
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:12197,284202,257,231172,607,0001,003,0002,285,568
2Dec 16, 2024 23:12197,363202,725,604172,676,0001,003,0002,285,568
3Dec 16, 2024 23:12197,960195,885,699172,203,0002,002,0002,269,184
4Dec 16, 2024 23:12198,020197,650,838172,256,0002,002,0002,273,280
5Dec 16, 2024 23:12198,115199,938,691174,341,00002,285,568
6Dec 16, 2024 23:12198,535200,243,017173,707,0001,004,0002,285,568
7Dec 16, 2024 23:12199,678202,203,198174,713,0001,004,0002,285,568
8Dec 16, 2024 23:12199,814204,298,560173,838,0001,998,0002,277,376
9Dec 16, 2024 23:12200,500201,186,230175,438,0001,002,0002,273,280