We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
Garbage
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);
}