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 22:03MatthiasMatthiasScore: 5,679,628Success
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 22:035,676,5755,021,157,4654,994,387,000999,0002,277,376
2Dec 16, 2024 22:035,676,9265,020,812,2704,994,696,000999,0002,285,568
3Dec 16, 2024 22:035,677,9385,027,631,5294,995,586,000999,0002,277,376
4Dec 16, 2024 22:035,679,2735,033,894,3444,997,760,00002,277,376
5Dec 16, 2024 22:035,679,6285,026,401,5564,996,075,0001,998,0002,273,280
6Dec 16, 2024 22:035,681,1405,031,334,2594,998,404,000999,0002,277,376
7Dec 16, 2024 22:035,683,1895,031,095,9374,999,208,0001,998,0002,285,568
8Dec 16, 2024 22:035,689,0915,041,657,1345,005,401,000999,0002,277,376
9Dec 16, 2024 22:035,690,2805,033,172,3045,006,447,000999,0002,277,376