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 listNov 13, 2024 07:40E SequeiraE SequeiraScore: 1,985,883Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 13, 2024 07:401,975,1341,764,385,4901,737,119,000999,0002,273,280
2Nov 13, 2024 07:401,976,1311,768,027,1961,736,997,0001,998,0002,293,760
3Nov 13, 2024 07:401,979,3321,764,135,4531,740,813,000999,0002,363,392
4Nov 13, 2024 07:401,985,4001,774,634,3841,745,153,0001,999,0002,289,664
5Nov 13, 2024 07:401,985,8831,777,026,8491,747,577,00002,281,472
6Nov 13, 2024 07:401,986,9011,777,214,8171,747,474,000999,0002,281,472
7Nov 13, 2024 07:401,987,9661,773,893,0381,747,411,0001,999,0002,293,760
8Nov 13, 2024 07:401,999,6821,785,763,8191,758,721,000999,0002,265,088
9Nov 13, 2024 07:402,004,4181,797,472,5871,762,889,000999,0002,277,376