greeting.c 502 Bytes
Newer Older
Henry K. Sun's avatar
Henry K. Sun committed
1
2
#include <stdint.h>

Nikhil Ghosh's avatar
Nikhil Ghosh committed
3
extern int64_t output(void *data, uint64_t size);
Henry K. Sun's avatar
Henry K. Sun committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

/* INCOMING TRANSMISSION... */
int main() {
    /* Our alien alphabet only has 8 letters. */
    uint64_t P = 1,
             E = 2,
             T = 5,
             A = 5,
             L = 7,
             N = 124314007,
             R = 271173410,
             G = 1479296389;

    /* Say hello to the locals. */
    uint64_t msg[] = { G * R * E * E * T , P * L * A * N * E * T };
    output(msg, sizeof(msg));

    return 0;
}