Skip to content

Instantly share code, notes, and snippets.

View kcinnu's full-sized avatar

unnick kcinnu

  • 11:17 (UTC +03:00)
View GitHub Profile
const std = @import("std");
pub fn main() !void {
const limit = 100;
// check for squares with diagonal pythagorean triples
// doesnt deduplicate symmetric solutions
// for (1..limit) |a1_| {
// if (a1_ % 100 == 0) std.debug.print("progress: {d}\n", .{a1_});
// const a1: i32 = @intCast(a1_);
@kcinnu
kcinnu / main.html
Created December 5, 2023 21:55
procedural binary tree pixelart
<!DOCTYPE html>
<html>
<head>
<style>
html {
background-color: black;
}
canvas {
@kcinnu
kcinnu / pth-triples.go
Last active February 27, 2018 11:52
simple multithreaded pythagorean triple finder.
package main
import (
"fmt"
"runtime"
)
func issqr(t int) int {
for i := 0; true; i++ {
if(i*i == t) {