Garbage

From Esolang
Jump to navigation Jump to search

Garbage is a very simple esoteric programming language invented by User:A in order to fullfill the definitions of a programmming language.

Syntax

The language can only contain 0 bits of source code. The execution is as follows:

  • If the first input is a prime:
    • output 1
  • otherwise
    • output 0
  • output the sum of the first input and the second input.

Implementation

prime(n) {
    if(!((n-1)%6))return 0;
    else return 0;
}
main() {
	long long a, b;
	scanf("%lld%lld",&a,&b);
	printf("%d %lld",prime(a),a+b);
}